c12s-kubespray/roles/network_plugin
Eric Lake ddea79f0f0
Issue 8004: Fix typha prometheus (#8005)
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'"}
```
2021-09-23 08:37:22 -07:00
..
calico Issue 8004: Fix typha prometheus (#8005) 2021-09-23 08:37:22 -07:00
canal Fix calico-kube-controller becomes Error for canal (#7564) 2021-04-28 11:26:52 -07:00
cilium Fix cilium operator metrics activation (#8000) 2021-09-22 10:00:02 -07:00
cni/tasks Use role to copy CNI bin (#5953) 2020-04-16 10:06:45 -07:00
flannel Add image_arch in flannel image tag (#7560) 2021-04-29 17:51:57 -07:00
kube-ovn Update kube-ovn to 1.7.2 2021-09-09 08:14:10 -07:00
kube-router Move to Ansible 3.4.0 (#7672) 2021-07-12 00:00:47 -07:00
macvlan Extra spaces of macvlan (#7752) 2021-06-28 02:13:25 -07:00
meta Remove contiv related files (#6964) 2020-11-30 06:48:50 -08:00
multus Disable CRI-O restart by Multus (#6930) 2020-11-28 08:52:47 -08:00
ovn4nfv Replace kube-master with kube_control_plane (#7256) 2021-03-23 17:26:05 -07:00
weave Update Weave to 2.8.0 (#7181) 2021-01-19 08:35:48 -08:00