Skip to content

Commit

Permalink
Calico : add ETCD endpoints to install-cni container
Browse files Browse the repository at this point in the history
  • Loading branch information
olevitt committed Nov 10, 2023
1 parent cca7615 commit 1916587
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/network_plugin/calico/templates/calico-node.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ spec:
# Prevents the container from sleeping forever.
- name: SLEEP
value: "false"
{% if calico_datastore == "etcd" %}
- name: ETCD_ENDPOINTS
valueFrom:
configMapKeyRef:
name: calico-config
key: etcd_endpoints
{% endif %}
{% if calico_datastore == "kdd" %}
# Set the hostname based on the k8s node name.
- name: KUBERNETES_NODE_NAME
Expand Down

0 comments on commit 1916587

Please sign in to comment.