forked from HariSekhon/Kubernetes-configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cert-manager-kustomization.yaml
56 lines (51 loc) · 1.93 KB
/
cert-manager-kustomization.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
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Author: Hari Sekhon
# Date: 2022-01-05 18:48:41 +0000 (Wed, 05 Jan 2022)
#
# vim:ts=2:sts=2:sw=2:et
# lint: k8s
#
# https://github.com/HariSekhon/Kubernetes-configs
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# C e r t M a n a g e r K u s t o m i z a t i o n
# ============================================================================ #
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
#namespace: cert-manager # XXX: Do not set this - it will override roles for kube-system needed for leader election of cainjector
resources:
# https://github.com/jetstack/cert-manager/releases
#
# contains namespace
#- https://github.com/jetstack/cert-manager/releases/download/v1.6.1/cert-manager.yaml
#
# OR helm + namespace.yaml
#
- cert-manager-namespace.yaml
#- cert-manager-clusterissuer.yaml # XXX: configure this before enabling
helmCharts:
- name: cert-manager
repo: https://charts.jetstack.io
version: v1.6.1 # helm search repo --regexp 'jetstack/cert-manager[[:space:]]' -o json | jq -r '.[].version'
releaseName: cert-manager
namespace: cert-manager
includeCRDs: true
valuesFile: cert-manager-values.yaml
# label app.kubernetes.io/instance=cert-manager causes warnings for all 6 Cert Manager CRDs in ArgoCD, eg:
#
# SharedResourceWarning CustomResourceDefinition/certificaterequests.cert-manager.io is part of applications cert-manager-production and cert-manager
#
# https://github.com/argoproj/argo-cd/issues/6728
#
patches:
- path: ./remove-instance-label.jsonpatch.yaml
target:
kind: CustomResourceDefinition
labelSelector: app.kubernetes.io/instance=cert-manager