Skip to content

Commit 4014508

Browse files
authored
Merge pull request #33 from stackhpc/letsencrypt
Add cert manager Let's Encrypt issuer config
2 parents 4bb3c4c + aef8daf commit 4014508

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

ansible/inventory/group_vars/all/gateway-api

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ zuul_operator_gateway_api_httproutes:
3030
namespace: projectcontour
3131
hostnames:
3232
- "zuul.compute.sms-lab.cloud"
33-
- "zuultest.ddns.net"
3433
rules:
3534
- matches:
3635
- path:
@@ -40,3 +39,19 @@ zuul_operator_gateway_api_httproutes:
4039
- kind: Service
4140
name: zuul-web
4241
port: 9000
42+
43+
zuul_operator_cert_manager_issuers:
44+
- name: letsencrypt
45+
spec:
46+
acme:
47+
48+
server: https://acme-staging-v02.api.letsencrypt.org/directory
49+
privateKeySecretRef:
50+
name: issuer-account-key
51+
solvers:
52+
- http01:
53+
gatewayHTTPRoute:
54+
parentRefs:
55+
- name: contour
56+
namespace: projectcontour
57+
kind: Gateway

ansible/run.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@
6363
kind: Namespace
6464
state: present
6565

66+
- name: Ensure Cert Manager issuers
67+
kubernetes.core.k8s:
68+
definition:
69+
apiVersion: v1
70+
kind: ClusterIssuer
71+
metadata:
72+
name: "{{ item.name }}"
73+
namespace: "{{ item.namespace | default('projectcontour') }}"
74+
spec: "{{ item.spec }}"
75+
state: present
76+
loop: "{{ zuul_operator_cert_manager_issuers }}"
77+
loop_control:
78+
label: "{{ item.name }}"
79+
6680
- name: Ensure Contour Provisioner CRDs
6781
kubernetes.core.k8s:
6882
src: "{{ zuul_operator_contour_provisioner_crd_url }}"

0 commit comments

Comments
 (0)