|
| 1 | +{{- if .Values.linkerd.enabled -}} |
| 2 | +{{- if and .Values.linkerd.trustAnchor.ca.crt .Values.linkerd.trustAnchor.ca.key -}} |
| 3 | +--- |
| 4 | +kind: Secret |
| 5 | +apiVersion: v1 |
| 6 | +metadata: |
| 7 | + name: linkerd-trust-anchor |
| 8 | + namespace: {{ .Values.linkerd.namespace }} |
| 9 | + labels: |
| 10 | + linkerd.io/control-plane-component: identity |
| 11 | + linkerd.io/control-plane-ns: {{ .Values.linkerd.namespace }} |
| 12 | + {{- include "linkerd-helpers.labels" . | nindent 4 }} |
| 13 | +data: |
| 14 | + tls.crt: {{ b64enc (.Values.linkerd.trustAnchor.ca.crt | trim )}} |
| 15 | + tls.key: {{ b64enc (.Values.linkerd.trustAnchor.ca.key | trim )}} |
| 16 | +{{- end }} |
| 17 | +--- |
| 18 | +apiVersion: cert-manager.io/v1 |
| 19 | +kind: Issuer |
| 20 | +metadata: |
| 21 | + name: linkerd-trust-anchor |
| 22 | + namespace: {{ .Values.linkerd.namespace }} |
| 23 | + labels: |
| 24 | + linkerd.io/control-plane-component: identity |
| 25 | + linkerd.io/control-plane-ns: {{ .Values.linkerd.namespace }} |
| 26 | + {{- include "linkerd-helpers.labels" . | nindent 4 }} |
| 27 | +spec: |
| 28 | + ca: |
| 29 | + secretName: linkerd-trust-anchor |
| 30 | +--- |
| 31 | +apiVersion: cert-manager.io/v1 |
| 32 | +kind: Certificate |
| 33 | +metadata: |
| 34 | + name: linkerd-identity-issuer |
| 35 | + namespace: {{ .Values.linkerd.namespace }} |
| 36 | + labels: |
| 37 | + linkerd.io/control-plane-component: identity |
| 38 | + linkerd.io/control-plane-ns: {{ .Values.linkerd.namespace }} |
| 39 | + {{- include "linkerd-helpers.labels" . | nindent 4 }} |
| 40 | +spec: |
| 41 | + secretName: linkerd-identity-issuer |
| 42 | + duration: {{ .Values.linkerd.identityIssuer.duration }} |
| 43 | + renewBefore: {{ .Values.linkerd.identityIssuer.renewBefore }} |
| 44 | + issuerRef: |
| 45 | + name: linkerd-trust-anchor |
| 46 | + kind: Issuer |
| 47 | + commonName: identity.{{ .Values.linkerd.namespace }}.cluster.local |
| 48 | + dnsNames: |
| 49 | + - identity.{{ .Values.linkerd.namespace }}.cluster.local |
| 50 | + isCA: true |
| 51 | + privateKey: |
| 52 | + algorithm: ECDSA |
| 53 | + usages: |
| 54 | + - cert sign |
| 55 | + - crl sign |
| 56 | + - server auth |
| 57 | + - client auth |
| 58 | +{{- if and .Values.linkerd.webhook.ca.crt .Values.linkerd.webhook.ca.key -}} |
| 59 | +--- |
| 60 | +kind: Secret |
| 61 | +apiVersion: v1 |
| 62 | +metadata: |
| 63 | + name: webhook-issuer-tls |
| 64 | + namespace: {{ .Values.linkerd.namespace }} |
| 65 | + labels: |
| 66 | + linkerd.io/control-plane-component: proxy-injector |
| 67 | + linkerd.io/control-plane-ns: {{ .Values.linkerd.namespace }} |
| 68 | + {{- include "linkerd-helpers.labels" . | nindent 4 }} |
| 69 | +data: |
| 70 | + tls.crt: {{ b64enc (.Values.linkerd.webhook.ca.crt | trim )}} |
| 71 | + tls.key: {{ b64enc (.Values.linkerd.webhook.ca.key | trim )}} |
| 72 | +{{- end }} |
| 73 | +--- |
| 74 | +apiVersion: cert-manager.io/v1 |
| 75 | +kind: Issuer |
| 76 | +metadata: |
| 77 | + name: webhook-issuer |
| 78 | + namespace: {{ .Values.linkerd.namespace }} |
| 79 | + labels: |
| 80 | + linkerd.io/control-plane-component: webhook |
| 81 | + linkerd.io/control-plane-ns: {{ .Values.linkerd.namespace }} |
| 82 | + {{- include "linkerd-helpers.labels" . | nindent 4 }} |
| 83 | +spec: |
| 84 | + ca: |
| 85 | + secretName: webhook-issuer-tls |
| 86 | +--- |
| 87 | +apiVersion: cert-manager.io/v1 |
| 88 | +kind: Certificate |
| 89 | +metadata: |
| 90 | + name: linkerd-policy-validator |
| 91 | + namespace: {{ .Values.linkerd.namespace }} |
| 92 | + labels: |
| 93 | + linkerd.io/control-plane-component: policy-validator |
| 94 | + linkerd.io/control-plane-ns: {{ .Values.linkerd.namespace }} |
| 95 | + {{- include "linkerd-helpers.labels" . | nindent 4 }} |
| 96 | +spec: |
| 97 | + secretName: linkerd-policy-validator-k8s-tls |
| 98 | + duration: {{ .Values.linkerd.webhook.issuer.duration }} |
| 99 | + renewBefore: {{ .Values.linkerd.webhook.issuer.renewBefore }} |
| 100 | + issuerRef: |
| 101 | + name: webhook-issuer |
| 102 | + kind: Issuer |
| 103 | + commonName: linkerd-policy-validator.{{ .Values.linkerd.namespace }}.svc |
| 104 | + dnsNames: |
| 105 | + - linkerd-policy-validator.{{ .Values.linkerd.namespace }}.svc |
| 106 | + - linkerd-policy-validator.{{ .Values.linkerd.namespace }}.svc.cluster.local |
| 107 | + isCA: false |
| 108 | + privateKey: |
| 109 | + algorithm: ECDSA |
| 110 | + encoding: PKCS8 |
| 111 | + usages: |
| 112 | + - server auth |
| 113 | +--- |
| 114 | +apiVersion: cert-manager.io/v1 |
| 115 | +kind: Certificate |
| 116 | +metadata: |
| 117 | + name: linkerd-proxy-injector |
| 118 | + namespace: {{ .Values.linkerd.namespace }} |
| 119 | + labels: |
| 120 | + linkerd.io/control-plane-component: proxy-injector |
| 121 | + linkerd.io/control-plane-ns: {{ .Values.linkerd.namespace }} |
| 122 | + {{- include "linkerd-helpers.labels" . | nindent 4 }} |
| 123 | +spec: |
| 124 | + secretName: linkerd-proxy-injector-k8s-tls |
| 125 | + duration: {{ .Values.linkerd.webhook.issuer.duration }} |
| 126 | + renewBefore: {{ .Values.linkerd.webhook.issuer.renewBefore }} |
| 127 | + issuerRef: |
| 128 | + name: webhook-issuer |
| 129 | + kind: Issuer |
| 130 | + commonName: linkerd-proxy-injector.{{ .Values.linkerd.namespace }}.svc |
| 131 | + dnsNames: |
| 132 | + - linkerd-proxy-injector.{{ .Values.linkerd.namespace }}.svc |
| 133 | + - linkerd-proxy-injector.{{ .Values.linkerd.namespace }}.svc.cluster.local |
| 134 | + isCA: false |
| 135 | + privateKey: |
| 136 | + algorithm: ECDSA |
| 137 | + usages: |
| 138 | + - server auth |
| 139 | +--- |
| 140 | +apiVersion: cert-manager.io/v1 |
| 141 | +kind: Certificate |
| 142 | +metadata: |
| 143 | + name: linkerd-sp-validator |
| 144 | + namespace: {{ .Values.linkerd.namespace }} |
| 145 | + labels: |
| 146 | + linkerd.io/control-plane-component: sp-validator |
| 147 | + linkerd.io/control-plane-ns: {{ .Values.linkerd.namespace }} |
| 148 | + {{- include "linkerd-helpers.labels" . | nindent 4 }} |
| 149 | +spec: |
| 150 | + secretName: linkerd-sp-validator-k8s-tls |
| 151 | + duration: {{ .Values.linkerd.webhook.issuer.duration }} |
| 152 | + renewBefore: {{ .Values.linkerd.webhook.issuer.renewBefore }} |
| 153 | + issuerRef: |
| 154 | + name: webhook-issuer |
| 155 | + kind: Issuer |
| 156 | + commonName: linkerd-sp-validator.{{ .Values.linkerd.namespace }}.svc |
| 157 | + dnsNames: |
| 158 | + - linkerd-sp-validator.{{ .Values.linkerd.namespace }}.svc |
| 159 | + - linkerd-sp-validator.{{ .Values.linkerd.namespace }}.svc.cluster.local |
| 160 | + isCA: false |
| 161 | + privateKey: |
| 162 | + algorithm: ECDSA |
| 163 | + usages: |
| 164 | + - server auth |
| 165 | +{{- end }} |
0 commit comments