Add role kubernetes TODO: fix role
This commit is contained in:
28
kubernetes/templates/k8s-dqlite/csr-dqlite.conf.template
Normal file
28
kubernetes/templates/k8s-dqlite/csr-dqlite.conf.template
Normal 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
|
||||
7
kubernetes/templates/k8s-dqlite/init.yaml.template
Normal file
7
kubernetes/templates/k8s-dqlite/init.yaml.template
Normal 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
|
||||
Reference in New Issue
Block a user