Disable http challenge;Inject stepca cert;Set default certresolver
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2022-08-25 12:04:51 +02:00
parent 1c43bb19d2
commit fba2e3e4b1
2 changed files with 18 additions and 3 deletions

View File

@ -110,7 +110,7 @@
kubernetes.core.helm:
name: step-certificates
chart_ref: /opt/metacluster/helm-charts/step-certificates
release_namespace: step-ca
release_namespace: kube-system
create_namespace: yes
wait: yes
kubeconfig: "{{ kubeconfig.path }}"
@ -140,6 +140,20 @@
notify:
- Apply manifests
- name: Inject step-ca certificate into traefik container
ansible.builtin.blockinfile:
path: /var/lib/rancher/k3s/server/manifests/traefik-config.yaml
block: |
volumes:
- name: step-certificates-certs
mountPath: /step-ca
type: configMap
env:
- name: LEGO_CA_CERTIFICATES
value: /step-ca/root_ca.crt
notify:
- Apply manifests
- name: Trigger handlers
ansible.builtin.meta: flush_handlers