AdWerx / charts

helm charts maintained by Adwerx Engineering
MIT License
25 stars 34 forks source link

Support for new apps version #2

Closed juangom closed 5 years ago

juangom commented 5 years ago

This is the k8s version i'm running.

# kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:36:53Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.0", GitCommit:"2bd9643cee5b3b3a5ecbd3af49d09018f0773c77", GitTreeState:"clean", BuildDate:"2019-09-18T14:27:17Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}

Installing the chart throws this error

# helm install adwerx/awx --version 1.0.0 --generate-name
Error: apiVersion "apps/v1beta2" in awx/charts/rabbitmq/templates/statefulset.yaml is not available

Acording with the Docs. Stateful sets belong to apps/v1 version.

I fetched the chart dir and modified to apiVersion: apps:v1 but got this error

# helm install ./awx --generate-name
Error: StatefulSet.apps "awx-1569891478-memcached" is invalid: [spec.selector: Required value, spec.template.metadata.labels:                 Invalid value: map[string]string{"app":"awx-1569891478-memcached", "chart":"memcached-2.9.0", "heritage":"Helm", "release":"                awx-1569891478"}: `selector` does not match template `labels`]

Any ideas how to fix this?

Thanks

jbielick commented 5 years ago

I can definitely update the awx statefulsets to apps/v1. Unfortunately I don't control the stable/postgres, stable/rabbitmq, and stable/memcached charts and they have a bit of a backlog merging apps/v1 updates to the stable charts.

I'll see what I can do to copy / update the subcharts here.

jbielick commented 5 years ago

Can you try 1.1.0?

https://adwerx.github.io/charts/index.yaml

juangom commented 5 years ago

The web pod if failing continuosly

NAME                   READY   STATUS             RESTARTS   AGE
awx-546dbf7cc5-cjbgc   1/2     CrashLoopBackOff   4          2m38s
awx-memcached-0        1/1     Running            0          2m38s
awx-memcached-1        1/1     Running            0          2m31s
awx-memcached-2        0/1     Pending            0          2m18s
awx-postgresql-0       0/1     Pending            0          2m38s
awx-rabbitmq-0         0/1     Pending            0          2m38s
Events:
  Type     Reason     Age                    From                Message
  ----     ------     ----                   ----                -------
  Normal   Scheduled  <unknown>              default-scheduler   Successfully assigned default/awx-546dbf7cc5-cjbgc to node2.k8s
  Normal   Pulled     3m11s                  kubelet, node2.k8s  Container image "ansible/awx_task:7.0.0" already present on machine
  Normal   Created    3m11s                  kubelet, node2.k8s  Created container task
  Normal   Started    3m11s                  kubelet, node2.k8s  Started container task
  Warning  Unhealthy  2m20s (x4 over 3m)     kubelet, node2.k8s  Readiness probe failed: Get http://10.44.0.1:8052/: dial tcp 10.44.0.1:8052: connect: connection refused
  Normal   Pulled     2m15s (x3 over 3m12s)  kubelet, node2.k8s  Container image "ansible/awx_web:7.0.0" already present on machine
  Normal   Started    2m15s (x3 over 3m11s)  kubelet, node2.k8s  Started container web
  Normal   Created    2m15s (x3 over 3m12s)  kubelet, node2.k8s  Created container web
  Normal   Killing    2m15s (x2 over 2m45s)  kubelet, node2.k8s  Container web failed liveness probe, will be restarted
  Warning  Unhealthy  2m5s (x7 over 3m5s)    kubelet, node2.k8s  Liveness probe failed: Get http://10.44.0.1:8052/: dial tcp 10.44.0.1:8052: connect: connection refused
jbielick commented 5 years ago

What’s going on with memcached, Postgres and rabbitmq pods? Those are all ”Pending”. Nothing will work if those aren’t running.

juangom commented 5 years ago

They do not start.

# kubectl get po
NAME                   READY   STATUS             RESTARTS   AGE
awx-546dbf7cc5-vhgbt   1/2     CrashLoopBackOff   4          2m47s
awx-memcached-0        1/1     Running            0          2m47s
awx-memcached-1        1/1     Running            0          2m33s
awx-memcached-2        0/1     Pending            0          2m25s
awx-postgresql-0       0/1     Pending            0          2m46s
awx-rabbitmq-0         0/1     Pending            0          2m46s
jbielick commented 5 years ago

I can see that. That’s probably where you want to start debugging.