Add role kubernetes TODO: fix role

This commit is contained in:
2022-10-17 14:14:20 +02:00
parent 0d8d5e8528
commit 62a4a67fad
15 changed files with 246 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
[ req ]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn
[ dn ]
C = GB
ST = Canonical
L = Canonical
O = Canonical
OU = Canonical
CN = k8s
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS = {{ ansible_facts.fqdn }}
IP = {{ ansible_facts.default_ipv6.address }}
[ v3_ext ]
authorityKeyIdentifier=keyid,issuer:always
basicConstraints=CA:FALSE
keyUsage=keyEncipherment,dataEncipherment,digitalSignature
extendedKeyUsage=serverAuth,clientAuth
subjectAltName=@alt_names

View File

@@ -0,0 +1,7 @@
{% if inventory_hostname != groups['kubernetes'][0] %}
Cluster:
{% for node in groups['kubernetes'] if node != inventory_hostname %}
- {{ node }}:29001
{% endfor %}
{% endif %}
Address: 0.0.0.0:29001