feat(helm): Ask cert-manager for EC keys by default
This commit is contained in:
parent
0ec08bd1d0
commit
87039752a9
3 changed files with 19 additions and 0 deletions
|
@ -237,8 +237,10 @@ As of version `1.26.0` of this chart, by simply not providing any clusterIP valu
|
||||||
| controller.addHeaders | object | `{}` | Will add custom headers before sending response traffic to the client according to: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#add-headers |
|
| controller.addHeaders | object | `{}` | Will add custom headers before sending response traffic to the client according to: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#add-headers |
|
||||||
| controller.admissionWebhooks.annotations | object | `{}` | |
|
| controller.admissionWebhooks.annotations | object | `{}` | |
|
||||||
| controller.admissionWebhooks.certManager.admissionCert.duration | string | `""` | |
|
| controller.admissionWebhooks.certManager.admissionCert.duration | string | `""` | |
|
||||||
|
| controller.admissionWebhooks.certManager.admissionCert.extraConfig | object | `{"privateKey":{"algorithm":"ECDSA","size":256}}` | Extra configuration for the admission webhook certificate. Can contain anything a cert-manager's [`CertificateSpec`](https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec) can. |
|
||||||
| controller.admissionWebhooks.certManager.enabled | bool | `false` | |
|
| controller.admissionWebhooks.certManager.enabled | bool | `false` | |
|
||||||
| controller.admissionWebhooks.certManager.rootCert.duration | string | `""` | |
|
| controller.admissionWebhooks.certManager.rootCert.duration | string | `""` | |
|
||||||
|
| controller.admissionWebhooks.certManager.rootCert.extraConfig | object | `{"privateKey":{"algorithm":"ECDSA","size":256}}` | Extra configuration for the admission webhook CA certificate. Can contain anything a cert-manager's [`CertificateSpec`](https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec) can. |
|
||||||
| controller.admissionWebhooks.certificate | string | `"/usr/local/certificates/cert"` | |
|
| controller.admissionWebhooks.certificate | string | `"/usr/local/certificates/cert"` | |
|
||||||
| controller.admissionWebhooks.createSecretJob.resources | object | `{}` | |
|
| controller.admissionWebhooks.createSecretJob.resources | object | `{}` | |
|
||||||
| controller.admissionWebhooks.createSecretJob.securityContext.allowPrivilegeEscalation | bool | `false` | |
|
| controller.admissionWebhooks.createSecretJob.securityContext.allowPrivilegeEscalation | bool | `false` | |
|
||||||
|
|
|
@ -26,6 +26,9 @@ spec:
|
||||||
subject:
|
subject:
|
||||||
organizations:
|
organizations:
|
||||||
- ingress-nginx
|
- ingress-nginx
|
||||||
|
{{- with .Values.controller.admissionWebhooks.certManager.rootCert.extraConfig }}
|
||||||
|
{{- toYaml . | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
---
|
---
|
||||||
# Create an Issuer that uses the above generated CA certificate to issue certs
|
# Create an Issuer that uses the above generated CA certificate to issue certs
|
||||||
apiVersion: cert-manager.io/v1
|
apiVersion: cert-manager.io/v1
|
||||||
|
@ -60,4 +63,7 @@ spec:
|
||||||
subject:
|
subject:
|
||||||
organizations:
|
organizations:
|
||||||
- ingress-nginx-admission
|
- ingress-nginx-admission
|
||||||
|
{{- with .Values.controller.admissionWebhooks.certManager.admissionCert.extraConfig }}
|
||||||
|
{{- toYaml . | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -639,12 +639,23 @@ controller:
|
||||||
rootCert:
|
rootCert:
|
||||||
# default to be 5y
|
# default to be 5y
|
||||||
duration: ""
|
duration: ""
|
||||||
|
# -- Extra configuration for the admission webhook CA certificate. Can contain anything a cert-manager's [`CertificateSpec`](https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec) can.
|
||||||
|
extraConfig:
|
||||||
|
privateKey:
|
||||||
|
algorithm: ECDSA
|
||||||
|
size: 256
|
||||||
|
|
||||||
admissionCert:
|
admissionCert:
|
||||||
# default to be 1y
|
# default to be 1y
|
||||||
duration: ""
|
duration: ""
|
||||||
# issuerRef:
|
# issuerRef:
|
||||||
# name: "issuer"
|
# name: "issuer"
|
||||||
# kind: "ClusterIssuer"
|
# kind: "ClusterIssuer"
|
||||||
|
# -- Extra configuration for the admission webhook certificate. Can contain anything a cert-manager's [`CertificateSpec`](https://cert-manager.io/docs/reference/api-docs/#cert-manager.io/v1.CertificateSpec) can.
|
||||||
|
extraConfig:
|
||||||
|
privateKey:
|
||||||
|
algorithm: ECDSA
|
||||||
|
size: 256
|
||||||
metrics:
|
metrics:
|
||||||
port: 10254
|
port: 10254
|
||||||
portName: metrics
|
portName: metrics
|
||||||
|
|
Loading…
Reference in a new issue