CR not being instantiated
I tried the following commands on a fresh 1.15 micro8ks cluster:
kubectl apply -f https://gitlab.com/stackgres/stackgres/raw/master/example/kubernetes.yaml
kubectl apply -f https://gitlab.com/stackgres/stackgres/raw/master/example/stackgres_v1alpha1_sgcluster_cr.yaml
But while the CR is created, no action is taken by the CRD. Relevant info:
$ kubectl describe sgcluster stackgres-example
Name: stackgres-example
Namespace: default
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"stackgres.io/v1alpha1","kind":"StackGresCluster","metadata":{"annotations":{},"name":"stackgres-example","namespace":"defau...
API Version: stackgres.io/v1alpha1
Kind: StackGresCluster
Metadata:
Creation Timestamp: 2019-07-11T23:26:02Z
Generation: 1
Resource Version: 4717456
Self Link: /apis/stackgres.io/v1alpha1/namespaces/default/sgclusters/stackgres-example
UID: 7eb14d01-6cd4-4cc1-9fd1-fb1c9ad264f3
Spec:
Instances: 3
Events: <none>
$ kubectl get pods -n stackgres
NAME READY STATUS RESTARTS AGE
stackgres-operator-85c95cfb98-lszt5 1/1 Running 0 5m54s
$ kubectl get all -n stackgres
NAME READY STATUS RESTARTS AGE
pod/stackgres-operator-85c95cfb98-lszt5 1/1 Running 0 6m6s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/stackgres-operator ClusterIP 10.152.183.27 <none> 8080/TCP 6m6s
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/stackgres-operator 1/1 1 1 6m6s
NAME DESIRED CURRENT READY AGE
replicaset.apps/stackgres-operator-85c95cfb98 1 1 1 6m6s
$ kubectl logs stackgres-operator-85c95cfb98-lszt5 -n stackgres
_____ _ _ _____
/ ____| | | | / ____|
| (___ | |_ __ _ ___| | _| | __ _ __ ___ ___
\___ \| __/ _` |/ __| |/ / | |_ | '__/ _ \/ __|
____) | || (_| | (__| <| |__| | | | __/\__ \
|_____/ \__\__,_|\___|_|\_\\_____|_| \___||___/
by OnGres, Inc.
2019-07-11 23:23:43,073 INFO [io.sta.app.StackGresOperatorApp] (main) Kubernetes version: v1.15.0
2019-07-11 23:23:43,073 INFO [io.sta.app.StackGresOperatorApp] (main) URL of this Kubernetes cluster: https://10.152.183.1:443/
2019-07-11 23:23:43,073 INFO [io.sta.app.StackGresOperatorApp] (main) Default namespace selected: stackgres
2019-07-11 23:23:43,094 INFO [io.sta.app.StackGresOperatorApp] (main) CRD Watcher: sgclusters.stackgres.io
2019-07-11 23:23:43,164 INFO [io.quarkus] (main) Quarkus 0.18.0 started in 0.151s. Listening on: http://0.0.0.0:8080
2019-07-11 23:23:43,165 INFO [io.quarkus] (main) Installed features: [cdi, kubernetes, kubernetes-client, resteasy, resteasy-jsonb, smallrye-health]
Edited by Alvaro Hernandez