@@ -4,7 +4,7 @@ repositories:
4
4
url : " https://charts.jetstack.io"
5
5
# Kubernetes incubator repo of helm charts
6
6
- name : " kubernetes-incubator"
7
- url : " https://kubernetes- charts-incubator.storage.googleapis.com "
7
+ url : " https://charts.helm.sh/incubator "
8
8
9
9
releases :
10
10
@@ -16,9 +16,9 @@ releases:
16
16
17
17
#
18
18
# References:
19
- # - https://github.com/jetstack/cert-manager/blob/v0.9.0 /deploy/charts/cert-manager/values.yaml
19
+ # - https://github.com/jetstack/cert-manager/blob/v1.0.4 /deploy/charts/cert-manager/values.yaml
20
20
# Instructions for installing and testing correct install are at
21
- # - https://docs. cert-manager.io/en/release-0.9/getting-started/install/ kubernetes.html
21
+ # - https://cert-manager.io/docs/installation/ kubernetes/#installing-with-helm
22
22
#
23
23
- name : " cert-manager"
24
24
namespace : " cert-manager"
@@ -30,31 +30,30 @@ releases:
30
30
vendor : " jetstack"
31
31
default : " false"
32
32
chart : " jetstack/cert-manager"
33
- version : " v0.9.0 "
33
+ version : " {{ env " CERT_MANAGER_CHART_VERSION" | default "v1.0.4" }} "
34
34
wait : true
35
35
atomic : true
36
36
cleanupOnFail : true
37
+ createNamespace : true
37
38
installed : {{ env "CERT_MANAGER_INSTALLED" | default "true" }}
38
39
hooks :
39
- # This hoook adds the CRDs
40
- - events : ["presync"]
41
- showlogs : true
42
- command : " /bin/sh"
43
- args : ["-c", "kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.9/deploy/manifests/00-crds.yaml"]
44
- # This hook adds the annotation that keeps the webhook from preventing its own installation
45
- - events : ["presync"]
46
- showlogs : true
47
- command : " /bin/sh"
48
- args :
49
- - " -c"
50
- - >-
51
- kubectl get namespace "{{`{{ .Release.Namespace }}`}}" >/dev/null 2>&1 || kubectl create namespace "{{`{{ .Release.Namespace }}`}}";
52
- kubectl label --overwrite namespace "{{`{{ .Release.Namespace }}`}}" "certmanager.k8s.io/disable-validation=true" ;
53
- [[ "{{`{{ .Release.Namespace }}`}}" = "cert-manager" ]] && [[ -n "${CERT_MANAGER_IAM_ROLE}" ]]
54
- && kubectl annotate namespace "{{`{{ .Release.Namespace }}`}}" "iam.amazonaws.com/permitted=${CERT_MANAGER_IAM_ROLE}"
55
- || echo + Not annotating namespace "{{`{{ .Release.Namespace }}`}}" with "iam.amazonaws.com/permitted=${CERT_MANAGER_IAM_ROLE}"
40
+ - events : ["presync"]
41
+ showlogs : true
42
+ command : " /bin/sh"
43
+ args :
44
+ - " -c"
45
+ - >-
46
+ [[ "{{`{{ .Release.Namespace }}`}}" = "cert-manager" ]] && [[ -n "${CERT_MANAGER_IAM_ROLE}" ]]
47
+ && kubectl annotate namespace "{{`{{ .Release.Namespace }}`}}" "iam.amazonaws.com/permitted=${CERT_MANAGER_IAM_ROLE}"
48
+ || echo + Not annotating namespace "{{`{{ .Release.Namespace }}`}}" with "iam.amazonaws.com/permitted=${CERT_MANAGER_IAM_ROLE}"
49
+ - events : ["postsync"]
50
+ # Give cert-manager time to initialize itself
51
+ showlogs : true
52
+ command : " /bin/sleep"
53
+ args : ["15"]
56
54
values :
57
55
- fullnameOverride : cert-manager
56
+ installCRDs : true
58
57
rbac :
59
58
# ## Optional: RBAC_ENABLED;
60
59
create : {{ env "RBAC_ENABLED" | default "false" }}
@@ -67,20 +66,20 @@ releases:
67
66
# defaultIssuerKind: ""
68
67
# defaultACMEChallengeType: ""
69
68
# defaultACMEDNS01ChallengeProvider: ""
70
- {{ if env "CERT_MANAGER_IAM_ROLE" | default "" }}
69
+ {{- if env "CERT_MANAGER_IAM_ROLE" | default "" }}
71
70
podAnnotations :
72
71
# ## Required: EXTERNAL_DNS_IAM_ROLE; e.g. cp-staging-external-dns
73
72
iam.amazonaws.com/role : ' {{ env "CERT_MANAGER_IAM_ROLE" }}'
74
- {{ end }}
73
+ {{- end }}
75
74
serviceAccount :
76
75
# ## Optional: RBAC_ENABLED;
77
76
create : {{ env "RBAC_ENABLED" | default "false" }}
78
77
# ## Optional: CERT_MANAGER_SERVICE_ACCOUNT_NAME;
79
78
name : ' {{ env "CERT_MANAGER_SERVICE_ACCOUNT_NAME" | default "" }}'
80
79
prometheus :
81
- enabled : true
80
+ enabled : {{ env "CERT_MANAGER_METRICS_ENABLED" | default (env "METRICS_ENABLED") | default "false" }}
82
81
servicemonitor :
83
- enabled : true
82
+ enabled : {{ env "CERT_MANAGER_METRICS_ENABLED" | default (env "METRICS_ENABLED") | default "false" }}
84
83
prometheusInstance : default
85
84
targetPort : 9402
86
85
path : /metrics
@@ -98,20 +97,22 @@ releases:
98
97
cpu : " 50m"
99
98
memory : " 128Mi"
100
99
- name : ' cert-manager-issuers'
100
+ needs : ['cert-manager/cert-manager']
101
101
chart : " kubernetes-incubator/raw"
102
102
namespace : " cert-manager"
103
103
labels :
104
- component : " iam "
104
+ component : " cert-manager "
105
105
namespace : " cert-manager"
106
106
default : " true"
107
107
version : " 0.2.3"
108
108
wait : true
109
109
atomic : true
110
110
cleanupOnFail : true
111
111
installed : {{ env "CERT_MANAGER_INSTALLED" | default "true" }}
112
+ disableValidation : true
112
113
values :
113
114
- resources :
114
- - apiVersion : certmanager.k8s. io/v1alpha1
115
+ - apiVersion : cert-manager. io/v1
115
116
kind : ClusterIssuer
116
117
metadata :
117
118
name : letsencrypt-staging
@@ -125,16 +126,19 @@ releases:
125
126
privateKeySecretRef :
126
127
name : letsencrypt-staging
127
128
solvers :
129
+ {{- if env "CERT_MANAGER_HTTP_SOLVER_ENABLED" | default "" }}
128
130
# Enable the HTTP-01 challenge provider
129
131
- http01 :
130
132
ingress :
131
133
class : nginx
132
- {{- if env "CERT_MANAGER_IAM_ROLE" | default "" }}
134
+ {{- end }}
135
+ {{- if env "CERT_MANAGER_IAM_ROLE" | default "" }}
133
136
# Enable the DNS-01 challenge provider
134
137
- dns01 :
135
- route53 : {}
136
- {{- end }}
137
- - apiVersion : certmanager.k8s.io/v1alpha1
138
+ route53 :
139
+ region : {{ env "AWS_REGION" | default (env "AWS_DEFAULT_REGION") }}
140
+ {{- end }}
141
+ - apiVersion : cert-manager.io/v1
138
142
kind : ClusterIssuer
139
143
metadata :
140
144
name : letsencrypt-prod
@@ -148,14 +152,16 @@ releases:
148
152
privateKeySecretRef :
149
153
name : letsencrypt-prod
150
154
solvers :
155
+ {{- if env "CERT_MANAGER_HTTP_SOLVER_ENABLED" | default "" }}
151
156
# Enable the HTTP-01 challenge provider
152
157
- http01 :
153
158
ingress :
154
159
class : nginx
155
- {{- if env "CERT_MANAGER_IAM_ROLE" | default "" }}
160
+ {{- end }}
161
+ {{- if env "CERT_MANAGER_IAM_ROLE" | default "" }}
156
162
# Enable the DNS-01 challenge provider
157
163
- dns01 :
158
- route53 : {}
159
- {{- end }}
160
-
164
+ route53 :
165
+ region : {{ env "AWS_REGION" | default (env "AWS_DEFAULT_REGION") }}
166
+ {{- end }}
161
167
0 commit comments