mirror of
https://github.com/rancher/rke.git
synced 2025-09-18 16:36:41 +00:00
Update template to use etcd tls with AWS
This commit is contained in:
@@ -503,9 +503,30 @@ spec:
|
|||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: calico-config
|
name: calico-config
|
||||||
key: etcd_endpoints
|
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:
|
volumeMounts:
|
||||||
- name: ippool-config
|
- name: ippool-config
|
||||||
mountPath: /root/
|
mountPath: /root/
|
||||||
|
# Mount in the etcd TLS secrets.
|
||||||
|
- mountPath: /calico-secrets
|
||||||
|
name: etcd-certs
|
||||||
volumes:
|
volumes:
|
||||||
- name: ippool-config
|
- name: ippool-config
|
||||||
configMap:
|
configMap:
|
||||||
@@ -513,5 +534,9 @@ spec:
|
|||||||
items:
|
items:
|
||||||
- key: {{.CloudProvider}}-ippool
|
- key: {{.CloudProvider}}-ippool
|
||||||
path: {{.CloudProvider}}-ippool.yaml
|
path: {{.CloudProvider}}-ippool.yaml
|
||||||
|
# Mount in the etcd TLS secrets.
|
||||||
|
- name: etcd-certs
|
||||||
|
secret:
|
||||||
|
secretName: calico-etcd-secrets
|
||||||
{{end}}
|
{{end}}
|
||||||
`
|
`
|
||||||
|
Reference in New Issue
Block a user