Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
tuladhar committed Nov 7, 2023
1 parent 235e740 commit fc6719b
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions helm/teleport-operator/templates/tbot-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,45 +22,45 @@ spec:
runAsGroup: {{ .Values.pod.group.id }}
{{- with .Values.podSecurityContext }}
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- end }}
containers:
- name: tbot
image: public.ecr.aws/gravitational/teleport:14.1.1
command:
- tbot
args:
- start
- -c
- /config/tbot.yaml
env:
# POD_NAMESPACE is required for the kubernetes_secret` destination
# type to work correctly.
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
# KUBERNETES_TOKEN_PATH specifies the path to the service account
# JWT to use for joining.
# This path is based on the configuration of the volume and
# volumeMount.
- name: KUBERNETES_TOKEN_PATH
value: /var/run/secrets/tokens/join-sa-token
# TELEPORT_ANONYMOUS_TELEMETRY enables the submission of anonymous
# usage telemetry. This helps us shape the future development of
# `tbot`. You can disable this by omitting this.
- name: TELEPORT_ANONYMOUS_TELEMETRY
value: "1"
volumeMounts:
- mountPath: /config
name: config
- mountPath: /var/run/secrets/tokens
name: join-sa-token
securityContext:
{{- with .Values.containerSecurityContext }}
{{- . | toYaml | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
- name: tbot
image: public.ecr.aws/gravitational/teleport:14.1.1
command:
- tbot
args:
- start
- -c
- /config/tbot.yaml
env:
# POD_NAMESPACE is required for the kubernetes_secret` destination
# type to work correctly.
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
# KUBERNETES_TOKEN_PATH specifies the path to the service account
# JWT to use for joining.
# This path is based on the configuration of the volume and
# volumeMount.
- name: KUBERNETES_TOKEN_PATH
value: /var/run/secrets/tokens/join-sa-token
# TELEPORT_ANONYMOUS_TELEMETRY enables the submission of anonymous
# usage telemetry. This helps us shape the future development of
# `tbot`. You can disable this by omitting this.
- name: TELEPORT_ANONYMOUS_TELEMETRY
value: "1"
volumeMounts:
- mountPath: /config
name: config
- mountPath: /var/run/secrets/tokens
name: join-sa-token
securityContext:
{{- with .Values.containerSecurityContext }}
{{- . | toYaml | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 10 }}
serviceAccountName: {{ include "resource.default.name" . }}
volumes:
- name: config
Expand Down

0 comments on commit fc6719b

Please sign in to comment.