Skip to content

Commit

Permalink
Add kubernetes_service option to teleport helm chart (#5490)
Browse files Browse the repository at this point in the history
* Increment to version 0.0.10

* Add kubernetes_service option config
  • Loading branch information
stevenGravy authored and Joerger committed Feb 9, 2021
1 parent f0443c2 commit 7147a05
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/chart/teleport/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: teleport
apiVersion: v2
version: 0.0.9
version: 0.0.10
appVersion: "5"
description: Teleport provides a secure SSH and Kubernetes remote access solution that doesn't get in the way.
icon: https://goteleport.com/images/logos/logo-teleport-square.svg
Expand Down
19 changes: 16 additions & 3 deletions examples/chart/teleport/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,30 @@ data:
https_cert_file: {{ .Values.config.teleport.proxy_service.https_cert_file }}
{{- end }}

{{- if .Values.config.teleport.proxy_service.kubernetes }}
# kubernetes section configures
# kubernetes proxy protocol support
kubernetes:
enabled: {{ .Values.config.teleport.proxy_service.kubernetes.enabled }}
{{- if .Values.config.teleport.proxy_service.kubernetes.public_addr }}
{{- if .Values.config.teleport.proxy_service.kubernetes.public_addr }}
public_addr: {{ .Values.config.teleport.proxy_service.kubernetes.public_addr }}{{ if not (contains ":" .Values.config.teleport.proxy_service.kubernetes.public_addr) }}:{{ .Values.service.ports.proxykube.port }}{{ end }}
{{- else }}
{{- else }}
public_addr: {{ .Values.config.public_address }}:{{ .Values.service.ports.proxykube.port }}
{{- end }}
{{- end }}
listen_addr: {{ .Values.config.listen_addr }}:{{ .Values.ports.proxykube.containerPort }}


{{- else if .Values.config.teleport.kubernetes_service }}
#kube_service declaration
kube_listen_addr: {{ .Values.config.listen_addr }}:{{ .Values.ports.proxykube.containerPort }}
{{- end }}

{{- if .Values.config.teleport.kubernetes_service }}
kubernetes_service:
{{ toYaml .Values.config.teleport.kubernetes_service | indent 6 }}
{{- end }}
{{- end }}

{{- if .Values.config.highAvailability }}
---
#Configuration for additional deployments used for high performance
Expand Down
11 changes: 10 additions & 1 deletion examples/chart/teleport/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ config:
# We recommend to use tools like `pwgen` to generate sufficiently random
# tokens of 32+ byte length.
tokens:
- proxy,node:dogs-are-much-nicer-than-cats
- proxy,node,kube:dogs-are-much-nicer-than-cats
- trusted_cluster:trains-are-superior-to-cars

# Determines if SSH sessions to cluster nodes are forcefully terminated
Expand Down Expand Up @@ -159,6 +159,15 @@ config:
enabled: yes
# Specify a different hostname for the k8s public address (if different to config.public_address)
# public_addr: teleportkubernetes.example.com

# To use a kubernetes_service uncomment this section
# kubernetes_service:
# enabled: true
# labels:
# example-label: example-value
# listen_addr: 0.0.0.0:3027
# Optionally use a volume mounted kubeconfig to connect to other clusters
# kubeconfig_file: /var/lib/teleport/kubefiles/kubeconfig


# Alternatively you can provide your teleport configuration under teleportConfig with static text. No variable substitution.
Expand Down

0 comments on commit 7147a05

Please sign in to comment.