c12s-kubespray/roles
Kenichi Omichi 04a8a19ce6
Issue 8004: Fix typha prometheus (#8005) (#8035)
The typha prometheus settings were in the `volumeMounts` section of the
spec and not in the `envs` section. This was cauing the deployment to
fail because it was looking for a volumeMount.

```
failed: [controller-001.a2.da.dev.logdna.net] (item=calico-typha.yml) => {"ansible_loop_var": "item", "changed": false, "item": {"ansible_loop_var": "item", "changed": true, "checksum": "598ac79530749e8e2110793b53fc49ac208e7130", "dest": "/etc/kubernetes/calico-typha.yml", "diff": [], "failed": false, "gid": 0, "group": "root", "invocation": {"module_args": {"_original_basename": "calico-typha.yml.j2", "attributes": null, "backup": false, "checksum": "598ac79530749e8e2110793b53fc49ac208e7130", "content": null, "delimiter": null, "dest": "/etc/kubernetes/calico-typha.yml", "directory_mode": null, "follow": false, "force": true, "group": null, "local_follow": null, "mode": null, "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "src": "/home/core/.ansible/tmp/ansible-tmp-1632349768.56-75434-32452975679246/source", "unsafe_writes": null, "validate": null}}, "item": {"file": "calico-typha.yml", "name": "calico", "type": "typha"}, "md5sum": "53c00ac7f562cf9ecbbfd27899ea066d", "mode": "0644", "owner": "root", "size": 5378, "src": "/home/core/.ansible/tmp/ansible-tmp-1632349768.56-75434-32452975679246/source", "state": "file", "uid": 0}, "msg": "error running kubectl (/opt/bin/kubectl --namespace=kube-system apply --force --filename=/etc/kubernetes/calico-typha.yml) command (rc=1), out='service/calico-typha unchanged\n', err='error: error validating \"/etc/kubernetes/calico-typha.yml\": error validating data: [ValidationError(Deployment.spec.template.spec.containers[0].volumeMounts[2]): unknown field \"value\" in io.k8s.api.core.v1.VolumeMount, ValidationError(Deployment.spec.template.spec.containers[0].volumeMounts[2]): missing required field \"mountPath\" in io.k8s.api.core.v1.VolumeMount, ValidationError(Deployment.spec.template.spec.containers[0].volumeMounts[3]): unknown field \"value\" in io.k8s.api.core.v1.VolumeMount, ValidationError(Deployment.spec.template.spec.containers[0].volumeMounts[3]): missing required field \"mountPath\" in io.k8s.api.core.v1.VolumeMount]; if you choose to ignore these errors, turn validation off with --validate=false\n'"}
```

Co-authored-by: Eric Lake <ericlake@gmail.com>
2021-09-29 10:22:49 -07:00
..
adduser Fix nologin wrong path (#6272) 2020-06-16 02:30:04 -07:00
bastion-ssh-config Move to Ansible 3.4.0 (#7672) 2021-07-12 00:00:47 -07:00
bootstrap-os Fix missing file mode (risky-file-permissions) (#7959) 2021-09-09 23:35:59 -07:00
container-engine Fix ubuntu16/centos8 CI jobs (#7972) 2021-09-16 23:39:01 -07:00
download Update hashes with new versions 2021-09-17 00:39:02 -07:00
etcd Move to Ansible 3.4.0 (#7672) 2021-07-12 00:00:47 -07:00
etcdctl added destination filename to cp command (#7764) 2021-06-30 08:13:03 -07:00
kubernetes Fix k8s-certs-renew cp path (#7992) (#8032) 2021-09-29 01:28:48 -07:00
kubernetes-apps Add metrics_server_resizer option (#8018) (#8031) 2021-09-28 11:15:16 -07:00
kubespray-defaults ContainerD: bump containerd version to 1.4.9 (#7940) 2021-09-06 04:50:29 -07:00
network_plugin Issue 8004: Fix typha prometheus (#8005) (#8035) 2021-09-29 10:22:49 -07:00
recover_control_plane Move to Ansible 3.4.0 (#7672) 2021-07-12 00:00:47 -07:00
remove-node Move to Ansible 3.4.0 (#7672) 2021-07-12 00:00:47 -07:00
reset Move to Ansible 3.4.0 (#7672) 2021-07-12 00:00:47 -07:00
upgrade During pre-upgrade add a flag to always cordon (#7892) 2021-08-30 10:56:09 -07:00
win_nodes/kubernetes_patch Move to Ansible 3.4.0 (#7672) 2021-07-12 00:00:47 -07:00