mirror of
https://github.com/cert-manager/webhook-example.git
synced 2025-07-01 22:35:49 +02:00
allow running as unprivileged pod by choosing a higher port for listening (#33)
This commit is contained in:
parent
b5793bb12c
commit
97de643226
3 changed files with 13 additions and 4 deletions
|
@ -57,15 +57,16 @@ The Helm chart accepts the following values:
|
||||||
| name | required | description | default value |
|
| name | required | description | default value |
|
||||||
| ---------------------------------- | -------- | ----------------------------------------------- | --------------------------------------- |
|
| ---------------------------------- | -------- | ----------------------------------------------- | --------------------------------------- |
|
||||||
| `dnsimple.token` | ✔️ | DNSimple API Token | _empty_ |
|
| `dnsimple.token` | ✔️ | DNSimple API Token | _empty_ |
|
||||||
| `dnsimple.accountID` | | DNSimple Account ID (required when `dnsimple.token` is a user-token) | _empty_ |
|
| `dnsimple.accountID` | | DNSimple Account ID (required when `dnsimple.token` is a user-token) | _empty_ |
|
||||||
| `clusterIssuer.email` | | LetsEncrypt Admin Email | _empty_ |
|
| `clusterIssuer.email` | | LetsEncrypt Admin Email | _empty_ |
|
||||||
| `clusterIssuer.production.enabled` | | Create a production `ClusterIssuer` | `false` |
|
| `clusterIssuer.production.enabled` | | Create a production `ClusterIssuer` | `false` |
|
||||||
| `clusterIssuer.staging.enabled` | | Create a staging `ClusterIssuer` | `false` |
|
| `clusterIssuer.staging.enabled` | | Create a staging `ClusterIssuer` | `false` |
|
||||||
| `image.repository` | ✔️ | Docker image for the webhook solver | `ghcr.io/puzzle/cert-manager-webhook-dnsimple` |
|
| `image.repository` | ✔️ | Docker image for the webhook solver | `ghcr.io/puzzle/cert-manager-webhook-dnsimple` |
|
||||||
| `image.tag` | ✔️ | Docker image tag of the solver | latest tagged docker build |
|
| `image.tag` | ✔️ | Docker image tag of the solver | latest tagged docker build |
|
||||||
| `image.pullPolicy` | ✔️ | Image pull policy of the solver | `IfNotPresent` |
|
| `image.pullPolicy` | ✔️ | Image pull policy of the solver | `IfNotPresent` |
|
||||||
| `logLevel` | | Set the verbosity of the solver | _empty_ |
|
| `logLevel` | | Set the verbosity of the solver | _empty_ |
|
||||||
| `groupName` | ✔️ | Identifies the company that created the webhook | _empty_ |
|
| `useUnprivilegedPort` | | Use an unprivileged container-port for the webhook | `true` |
|
||||||
|
| `groupName` | ✔️ | Identifies the company that created the webhook | _empty_ |
|
||||||
| `certManager.namespace` | ✔️ | The namespace cert-manager was installed to | `cert-manager` |
|
| `certManager.namespace` | ✔️ | The namespace cert-manager was installed to | `cert-manager` |
|
||||||
| `certManager.serviceAccountName` | ✔️ | The service account cert-manager runs under | `cert-manager` |
|
| `certManager.serviceAccountName` | ✔️ | The service account cert-manager runs under | `cert-manager` |
|
||||||
|
|
||||||
|
|
|
@ -37,13 +37,20 @@ spec:
|
||||||
- --tls-private-key-file=/tls/tls.key
|
- --tls-private-key-file=/tls/tls.key
|
||||||
{{- if .Values.logLevel }}
|
{{- if .Values.logLevel }}
|
||||||
- --v={{ .Values.logLevel }}
|
- --v={{ .Values.logLevel }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.useUnprivilegedPort }}
|
||||||
|
- --secure-port=8443
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: GROUP_NAME
|
- name: GROUP_NAME
|
||||||
value: {{ .Values.groupName | quote }}
|
value: {{ .Values.groupName | quote }}
|
||||||
ports:
|
ports:
|
||||||
- name: https
|
- name: https
|
||||||
|
{{- if .Values.useUnprivilegedPort }}
|
||||||
|
containerPort: 8443
|
||||||
|
{{- else }}
|
||||||
containerPort: 443
|
containerPort: 443
|
||||||
|
{{- end }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|
|
@ -32,6 +32,7 @@ fullnameOverride: ""
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 443
|
port: 443
|
||||||
|
useUnprivilegedPort: true
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
|
|
Loading…
Reference in a new issue