Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set cipher suites #170

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ kube_network: flannel
kubelet_extra_args: ''
# Kube API server options
kube_apiserver_options: []
# Kubernetes TLS cipher suites
kube_tls_cipher_suites: 'TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384'
# CRI runtime
kube_cri_runtime: docker # docker, containerd or crio
# Flag to set HELM to be installed
Expand Down
11 changes: 11 additions & 0 deletions templates/kubeadm-config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,19 @@ apiVersion: kubeadm.k8s.io/v1beta3
{% endif %}
networking:
podSubnet: "{{kube_pod_network_cidr}}" # --pod-network-cidr
etcd:
local:
extraArgs:
cipher-suites: "{{kube_tls_cipher_suites}}"
{% if IM_NODE_PRIVATE_IP is defined %}
advertise-client-urls: "https://{{ IM_NODE_PRIVATE_IP }}:2379"
listen-client-urls: "https://127.0.0.1:2379,https://{{ IM_NODE_PRIVATE_IP }}:2379"
listen-peer-urls: "https://{{ IM_NODE_PRIVATE_IP }}:2380"
{% endif %}
apiServer:
extraArgs:
advertise-address: "{{kube_api_server}}" # --apiserver-advertise-address
tls-cipher-suites: "{{kube_tls_cipher_suites}}"
{% if IM_NODE_PUBLIC_IP is defined %}
certSANs:
- "{{ IM_NODE_PUBLIC_IP }}"
Expand All @@ -30,6 +40,7 @@ controlPlaneEndpoint: "{{kube_api_server}}:6443"
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
cgroupDriver: systemd
tlsCipherSuites: {{kube_tls_cipher_suites.split(',')}}
---
kind: InitConfiguration
{% if kube_version is version_compare('1.22.0', '<') %}
Expand Down