You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
738 B
YAML
34 lines
738 B
YAML
---
|
|
|
|
### tags:
|
|
### ccm
|
|
|
|
- name: Create secret for Hetzner CCM
|
|
kubernetes.core.k8s:
|
|
definition:
|
|
api_version: v1
|
|
kind: Secret
|
|
metadata:
|
|
namespace: kube-system
|
|
name: hcloud
|
|
label:
|
|
app: ccm
|
|
provider: hcloud
|
|
type: Opaque
|
|
data:
|
|
network: "{{ stage | string | b64encode }}"
|
|
token: "{{ hetzner_authentication_token | string | b64encode }}"
|
|
when:
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
|
tags:
|
|
- ccm
|
|
|
|
- name: Applying CCM deployment
|
|
kubernetes.core.k8s:
|
|
state: present
|
|
definition: "{{ lookup('template', k8s_ccm__template) }}"
|
|
when:
|
|
- inventory_hostname == groups['kube_control_plane'][0]
|
|
tags:
|
|
- ccm
|