mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 20:29:18 +03:00
Fixing CA certificate locations for k8s components
This commit is contained in:
@@ -105,9 +105,14 @@ spec:
|
||||
- mountPath: {{ kube_config_dir }}
|
||||
name: kubernetes-config
|
||||
readOnly: true
|
||||
- mountPath: /etc/ssl/certs
|
||||
- mountPath: /etc/ssl
|
||||
name: ssl-certs-host
|
||||
readOnly: true
|
||||
{% for dir in ssl_ca_dirs %}
|
||||
- mountPath: {{ dir }}
|
||||
name: {{ dir | regex_replace('^/(.*)$', '\\1' ) | regex_replace('/', '-') }}
|
||||
readOnly: true
|
||||
{% endfor %}
|
||||
- mountPath: {{ etcd_cert_dir }}
|
||||
name: etcd-certs
|
||||
readOnly: true
|
||||
@@ -120,9 +125,14 @@ spec:
|
||||
- hostPath:
|
||||
path: {{ kube_config_dir }}
|
||||
name: kubernetes-config
|
||||
- hostPath:
|
||||
path: /etc/ssl/certs/
|
||||
name: ssl-certs-host
|
||||
- name: ssl-certs-host
|
||||
hostPath:
|
||||
path: /etc/ssl
|
||||
{% for dir in ssl_ca_dirs %}
|
||||
- name: {{ dir | regex_replace('^/(.*)$', '\\1' ) | regex_replace('/', '-') }}
|
||||
hostPath:
|
||||
path: {{ dir }}
|
||||
{% endfor %}
|
||||
- hostPath:
|
||||
path: {{ etcd_cert_dir }}
|
||||
name: etcd-certs
|
||||
|
||||
Reference in New Issue
Block a user