Disable Harbor tls (rely on Traefik);Configure Traefik with custom certResolver;Retrieve & install root ca in truststore
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-08-23 14:31:53 +02:00
parent 1cd7e1510f
commit 585e39cb97
2 changed files with 30 additions and 3 deletions

View File

@ -116,6 +116,22 @@
kubeconfig: "{{ kubeconfig.path }}"
values: "{{ components.stepcertificates.chart_values }}"
- name: Retrieve step-ca configuration
kubernetes.core.k8s_log:
kind: Job
name: step-certificates
namespace: step-ca
kubeconfig: "{{ kubeconfig.path }}"
register: stepca_bootstraplog
- name: Install root CA in system truststore
ansible.builtin.shell:
cmd: |
step ca bootstrap \
--ca-url={{ stepca_bootstraplog.log | regex_search('CA URL: (.+)', '\\1') | first }} \
--fingerprint={{ stepca_bootstraplog.log | regex_search('CA Fingerprint: (.+)', '\\1') | first }} \
--install
- name: Install harbor chart
kubernetes.core.helm:
name: harbor