-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jkoberg <[email protected]>
- Loading branch information
Showing
16 changed files
with
203 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameAuthService" "appNameSuffix" "") -}} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
{{ include "ocis.metadata" . }} | ||
spec: | ||
{{- include "ocis.selector" . | nindent 2 }} | ||
{{- if and (not .Values.autoscaling.enabled) (.Values.replicas) }} | ||
replicas: {{ .Values.replicas }} | ||
{{- end }} | ||
{{- include "ocis.deploymentStrategy" . | nindent 2 }} | ||
template: | ||
{{- include "ocis.templateMetadata" (dict "scope" $ "configCheck" false) | nindent 4 }} | ||
spec: | ||
{{- include "ocis.serviceAccount" . | nindent 6 }} | ||
{{- include "ocis.affinity" .Values.services.authservice | nindent 6 }} | ||
{{- include "ocis.securityContextAndtopologySpreadConstraints" . | nindent 6 }} | ||
{{- include "ocis.priorityClassName" $.priorityClassName | nindent 6 }} | ||
{{- include "ocis.hostAliases" $ | nindent 6 }} | ||
nodeSelector: {{ toYaml $.nodeSelector | nindent 8 }} | ||
containers: | ||
- name: {{ .appName }} | ||
{{- include "ocis.image" $ | nindent 10 }} | ||
command: ["ocis"] | ||
args: ["auth-service", "server"] | ||
{{- include "ocis.containerSecurityContext" . | nindent 10 }} | ||
env: | ||
{{- include "ocis.serviceRegistry" . | nindent 12 }} | ||
|
||
- name: AUTH_SERVICE_LOG_COLOR | ||
value: {{ .Values.logging.color | quote }} | ||
- name: AUTH_SERVICE_LOG_LEVEL | ||
value: {{ .Values.logging.level | quote }} | ||
- name: AUTH_SERVICE_LOG_PRETTY | ||
value: {{ .Values.logging.pretty | quote }} | ||
|
||
- name: AUTH_SERVICE_TRACING_ENABLED | ||
value: "{{ .Values.tracing.enabled }}" | ||
- name: AUTH_SERVICE_TRACING_TYPE | ||
value: {{ .Values.tracing.type | quote }} | ||
- name: AUTH_SERVICE_TRACING_ENDPOINT | ||
value: {{ .Values.tracing.endpoint | quote }} | ||
- name: AUTH_SERVICE_TRACING_COLLECTOR | ||
value: {{ .Values.tracing.collector | quote }} | ||
|
||
- name: AUTH_SERVICE_DEBUG_PPROF | ||
value: {{ .Values.debug.profiling | quote }} | ||
|
||
- name: AUTH_SERVICE_GRPC_ADDR | ||
value: 0.0.0.0:9616 | ||
- name: AUTH_SERVICE_DEBUG_ADDR | ||
value: 0.0.0.0:9617 | ||
|
||
- name: AUTH_MACHINE_JWT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ include "secrets.jwtSecret" . }} | ||
key: jwt-secret | ||
|
||
- name: AUTH_SERVICE_API_KEY | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ include "secrets.machineAuthAPIKeySecret" . }} | ||
key: machine-auth-api-key | ||
|
||
- name: AUTH_SERVICE_SERVICE_ACCOUNT_ID | ||
value: .Values.features.serviceAccountID | ||
- name: AUTH_SERVICE_SERVICE_ACCOUNT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ include "secrets.serviceAccountSecret" . }} | ||
key: service-account-secret | ||
|
||
{{- include "ocis.livenessProbe" . | nindent 10 }} | ||
|
||
resources: {{ toYaml .resources | nindent 12 }} | ||
|
||
ports: | ||
- name: grpc | ||
containerPort: 9616 | ||
- name: metrics-debug | ||
containerPort: 9617 | ||
|
||
volumeMounts: | ||
- name: tmp-volume | ||
mountPath: /tmp | ||
|
||
{{- include "ocis.imagePullSecrets" $ | nindent 6 }} | ||
volumes: | ||
- name: tmp-volume | ||
emptyDir: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameAuthService" "appNameSuffix" "") -}} | ||
{{- $_ := set . "autoscaling" (default (default (dict) .Values.autoscaling) .Values.services.authservice.autoscaling) -}} | ||
{{ include "ocis.hpa" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameAuthService" "appNameSuffix" "") -}} | ||
{{ include "ocis.pdb" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{- if or (not .Values.secretRefs.serviceAccountSecretRef) }} | ||
{{- $params := (dict)}} | ||
{{- $_ := set $params "service-account-secret" (randAlphaNum 30) }} | ||
{{- include "ocis.secret" (dict "scope" . "name" "service-account-secret" "params" $params)}} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- include "ocis.basicServiceTemplates" (dict "scope" . "appName" "appNameAuthService" "appNameSuffix" "") -}} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ .appName }} | ||
namespace: {{ template "ocis.namespace" . }} | ||
labels: | ||
app: {{ .appName }} | ||
ocis-metrics: enabled | ||
{{- include "ocis.labels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
app: {{ .appName }} | ||
ports: | ||
- name: grpc | ||
port: 9616 | ||
protocol: TCP | ||
- name: metrics-debug | ||
port: 9617 | ||
protocol: TCP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,7 +81,7 @@ spec: | |
{{- include "ocis.cors" . |nindent 12 }} | ||
|
||
|
||
{{- include "ocis.livenessProbe" . | nindent 10 }} | ||
# {{- include "ocis.livenessProbe" . | nindent 10 }} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
wkloucek
Contributor
|
||
|
||
resources: {{ toYaml .resources | nindent 12 }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@kobergj Why was the
livenessProbe
disabled forsse
?