Skip to content

Commit

Permalink
Merge pull request #78 from ScheererJ/cni-install-check
Browse files Browse the repository at this point in the history
Added simple init container to calico-node to verify that the cni installation step worked.
  • Loading branch information
DockToFuture authored Apr 12, 2021
2 parents ed38e68 + 790b2f2 commit 54318df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/internal/calico/templates/node/daemonset-calico-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,16 @@ spec:
mountPath: /host/driver
securityContext:
privileged: true
# Container just prints the content of the host /opt/cni/bin directory to check for copy failures
- name: install-cni-check
image: {{ index .Values.images "calico-podtodaemon-flex" }}
command:
- ls
- -la
- /host/opt/cni/bin
volumeMounts:
- mountPath: /host/opt/cni/bin
name: cni-bin-dir
containers:
# Runs calico-node container on each Kubernetes node. This
# container programs network policy and routes on each
Expand Down

0 comments on commit 54318df

Please sign in to comment.