Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion ansible/inventory/group_vars/all/gateway-api
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ zuul_operator_gateway_api_httproutes:
namespace: projectcontour
hostnames:
- "zuul.compute.sms-lab.cloud"
- "zuultest.ddns.net"
rules:
- matches:
- path:
Expand All @@ -40,3 +39,19 @@ zuul_operator_gateway_api_httproutes:
- kind: Service
name: zuul-web
port: 9000

zuul_operator_cert_manager_issuers:
- name: letsencrypt
spec:
acme:
email: [email protected]
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: issuer-account-key
solvers:
- http01:
gatewayHTTPRoute:
parentRefs:
- name: contour
namespace: projectcontour
kind: Gateway
14 changes: 14 additions & 0 deletions ansible/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@
kind: Namespace
state: present

- name: Ensure Cert Manager issuers
kubernetes.core.k8s:
definition:
apiVersion: v1
kind: ClusterIssuer
metadata:
name: "{{ item.name }}"
namespace: "{{ item.namespace | default('projectcontour') }}"
spec: "{{ item.spec }}"
state: present
loop: "{{ zuul_operator_cert_manager_issuers }}"
loop_control:
label: "{{ item.name }}"

- name: Ensure Contour Provisioner CRDs
kubernetes.core.k8s:
src: "{{ zuul_operator_contour_provisioner_crd_url }}"
Expand Down