Move affinity, annotations and tolerations to oidc and server components

Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-02-18 13:04:04 +01:00
committed by Marco Franssen
parent 76a0c5ecfc
commit 1bdb9a5a50
4 changed files with 14 additions and 16 deletions
+3 -3
View File
@@ -48,7 +48,6 @@ Kubernetes: `>=1.21.0-0`
| Key | Type | Default | Description | | Key | Type | Default | Description |
|-----|------|---------|-------------| |-----|------|---------|-------------|
| affinity | object | `{}` | |
| agent.image.pullPolicy | string | `"IfNotPresent"` | | | agent.image.pullPolicy | string | `"IfNotPresent"` | |
| agent.image.registry | string | `"ghcr.io"` | | | agent.image.registry | string | `"ghcr.io"` | |
| agent.image.repository | string | `"spiffe/spire-agent"` | | | agent.image.repository | string | `"spiffe/spire-agent"` | |
@@ -76,6 +75,7 @@ Kubernetes: `>=1.21.0-0`
| oidc.acme.directoryUrl | string | `"https://acme-v02.api.letsencrypt.org/directory"` | | | oidc.acme.directoryUrl | string | `"https://acme-v02.api.letsencrypt.org/directory"` | |
| oidc.acme.emailAddress | string | `"[email protected]"` | | | oidc.acme.emailAddress | string | `"[email protected]"` | |
| oidc.acme.tosAccepted | bool | `false` | | | oidc.acme.tosAccepted | bool | `false` | |
| oidc.affinity | object | `{}` | |
| oidc.domains[0] | string | `"localhost"` | | | oidc.domains[0] | string | `"localhost"` | |
| oidc.domains[1] | string | `"spire-oidc.spire"` | | | oidc.domains[1] | string | `"spire-oidc.spire"` | |
| oidc.domains[2] | string | `"spire-oidc.spire.svc.cluster.local"` | | | oidc.domains[2] | string | `"spire-oidc.spire.svc.cluster.local"` | |
@@ -93,6 +93,7 @@ Kubernetes: `>=1.21.0-0`
| oidc.jwtIssuer | string | `"oidc-discovery.example.org"` | | | oidc.jwtIssuer | string | `"oidc-discovery.example.org"` | |
| oidc.logLevel | string | `"INFO"` | | | oidc.logLevel | string | `"INFO"` | |
| oidc.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | | | oidc.nodeSelector."kubernetes.io/arch" | string | `"amd64"` | |
| oidc.podAnnotations | object | `{}` | |
| oidc.podSecurityContext | object | `{}` | | | oidc.podSecurityContext | object | `{}` | |
| oidc.replicaCount | int | `1` | | | oidc.replicaCount | int | `1` | |
| oidc.resources | object | `{}` | | | oidc.resources | object | `{}` | |
@@ -100,7 +101,7 @@ Kubernetes: `>=1.21.0-0`
| oidc.service.annotations | object | `{}` | | | oidc.service.annotations | object | `{}` | |
| oidc.service.port | int | `80` | | | oidc.service.port | int | `80` | |
| oidc.service.type | string | `"NodePort"` | | | oidc.service.type | string | `"NodePort"` | |
| podAnnotations | object | `{}` | | | oidc.tolerations | list | `[]` | |
| server.dataStorage.accessMode | string | `"ReadWriteOnce"` | | | server.dataStorage.accessMode | string | `"ReadWriteOnce"` | |
| server.dataStorage.enabled | bool | `true` | | | server.dataStorage.enabled | bool | `true` | |
| server.dataStorage.size | string | `"1Gi"` | | | server.dataStorage.size | string | `"1Gi"` | |
@@ -123,7 +124,6 @@ Kubernetes: `>=1.21.0-0`
| spire.clusterName | string | `"example-cluster"` | | | spire.clusterName | string | `"example-cluster"` | |
| spire.server.logLevel | string | `"info"` | | | spire.server.logLevel | string | `"info"` | |
| spire.trustDomain | string | `"example.org"` | | | spire.trustDomain | string | `"example.org"` | |
| tolerations | list | `[]` | |
| waitForIt.image.pullPolicy | string | `"IfNotPresent"` | | | waitForIt.image.pullPolicy | string | `"IfNotPresent"` | |
| waitForIt.image.registry | string | `"gcr.io"` | | | waitForIt.image.registry | string | `"gcr.io"` | |
| waitForIt.image.repository | string | `"spiffe-io/wait-for-it"` | | | waitForIt.image.repository | string | `"spiffe-io/wait-for-it"` | |
+3 -3
View File
@@ -15,7 +15,7 @@ spec:
{{- include "spire.oidc.selectorLabels" . | nindent 6 }} {{- include "spire.oidc.selectorLabels" . | nindent 6 }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }} {{- with .Values.oidc.podAnnotations }}
annotations: annotations:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
@@ -106,11 +106,11 @@ spec:
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.affinity }} {{- with .Values.oidc.affinity }}
affinity: affinity:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.tolerations }} {{- with .Values.oidc.tolerations }}
tolerations: tolerations:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
@@ -15,7 +15,7 @@ spec:
{{- include "spire.server.selectorLabels" . | nindent 6 }} {{- include "spire.server.selectorLabels" . | nindent 6 }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }} {{- with .Values.oidc.podAnnotations }}
annotations: annotations:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
@@ -99,11 +99,11 @@ spec:
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.affinity }} {{- with .Values.server.affinity }}
affinity: affinity:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- with .Values.tolerations }} {{- with .Values.server.tolerations }}
tolerations: tolerations:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
+5 -7
View File
@@ -165,6 +165,11 @@ oidc:
# runAsNonRoot: true # runAsNonRoot: true
# runAsUser: 1000 # runAsUser: 1000
tolerations: []
affinity: {}
podAnnotations: {}
insecureScheme: insecureScheme:
enabled: false enabled: false
@@ -221,9 +226,6 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
name: "" name: ""
podAnnotations: {}
autoscaling: autoscaling:
enabled: false enabled: false
minReplicas: 1 minReplicas: 1
@@ -231,10 +233,6 @@ autoscaling:
targetCPUUtilizationPercentage: 80 targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80 # targetMemoryUtilizationPercentage: 80
tolerations: []
affinity: {}
# spireSettings # spireSettings
spire: spire: