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:
Danny Bessems 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

View File

@ -16,8 +16,6 @@ platform:
additionalArguments:
- "--certificatesResolvers.stepca.acme.caserver=https://step-certificates.step-ca.svc.cluster.local/acme/acme/directory"
- "--certificatesResolvers.stepca.acme.email=admin"
- "--certificatesResolvers.stepca.acme.httpChallenge=true"
- "--certificatesResolvers.stepca.acme.httpChallenge.entryPoint=web"
- "--certificatesResolvers.stepca.acme.storage=/data/acme.json"
- "--certificatesResolvers.stepca.acme.tlsChallenge=true"
globalArguments: []
@ -30,6 +28,9 @@ platform:
protocol: TCP
web:
redirectTo: websecure
websecure:
tls:
certResolver: stepca
helm_repositories:
- name: longhorn