1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-01 23:33:39 +00:00

Merge pull request #305 from moelsayed/fix_304

Update calico template to use etcd tls with aws
This commit is contained in:
Alena Prokharchyk 2018-02-05 13:16:44 -08:00 committed by GitHub
commit 6cc50c08dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,9 +503,30 @@ spec:
configMapKeyRef:
name: calico-config
key: etcd_endpoints
# Location of the CA certificate for etcd.
- name: ETCD_CA_CERT_FILE
valueFrom:
configMapKeyRef:
name: calico-config
key: etcd_ca
# Location of the client key for etcd.
- name: ETCD_KEY_FILE
valueFrom:
configMapKeyRef:
name: calico-config
key: etcd_key
# Location of the client certificate for etcd.
- name: ETCD_CERT_FILE
valueFrom:
configMapKeyRef:
name: calico-config
key: etcd_cert
volumeMounts:
- name: ippool-config
mountPath: /root/
# Mount in the etcd TLS secrets.
- mountPath: /calico-secrets
name: etcd-certs
volumes:
- name: ippool-config
configMap:
@ -513,5 +534,9 @@ spec:
items:
- key: {{.CloudProvider}}-ippool
path: {{.CloudProvider}}-ippool.yaml
# Mount in the etcd TLS secrets.
- name: etcd-certs
secret:
secretName: calico-etcd-secrets
{{end}}
`