-
Notifications
You must be signed in to change notification settings - Fork 2
/
cert-manager.yaml
43 lines (43 loc) · 1.58 KB
/
cert-manager.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
- hosts: master
become: yes
tasks:
- name: Copy certificates Directory
become_user: ubuntu
copy:
src: certificates
dest: ~/
- name: Setting up cert-manager namespace
become_user: ubuntu
shell: kubectl create namespace cert-manager >> cert-manager_ns_created.info
args:
chdir: $HOME
creates: cert-manager_ns_created.info
run_once: true
- name: Labling cert-manager namespace
become_user: ubuntu
shell: kubectl label namespace cert-manager certmanager.k8s.io/disable-validation="true" >> cert-manager_ns_labaled.info
args:
chdir: $HOME
creates: cert-manager_ns_labaled.info
run_once: true
- name: Setting up cert-manager CRDs
become_user: ubuntu
shell: kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.6/deploy/manifests/00-crds.yaml >> cert-manager_crd_installed.info
args:
chdir: $HOME
creates: cert-manager_crd_installed.info
- name: Setting up cert-manager
become_user: ubuntu
shell: helm install --name cert-manager --namespace cert-manager stable/cert-manager >> cert-manager_installed.info
args:
chdir: $HOME
creates: cert-manager_installed.info
- pause:
prompt: "Pausing 5 Minuets to get PODs Running"
minutes: 5
- name: Creating Letsencrypt Cluster Issuer
become_user: ubuntu
shell: kubectl create -f ~/certificates/letsencrypt.yaml >> cluster_issuer_created.info
args:
chdir: $HOME
creates: cluster_issuer_created.info