Skip to content

Commit f5a293c

Browse files
committed
Add cert manager Let's Encrypt issuer config
1 parent 4bb3c4c commit f5a293c

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

ansible/inventory/group_vars/all/gateway-api

Lines changed: 14 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,17 @@ 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+
solvers:
50+
- http01:
51+
gatewayHTTPRoute:
52+
parentRefs:
53+
- name: contour
54+
namespace: projectcontour
55+
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)