Skip to content

Commit

Permalink
fix: Corrected postStart examples (#50004)
Browse files Browse the repository at this point in the history
  • Loading branch information
milos-teleport authored Dec 10, 2024
1 parent 76e843b commit 18ddda1
Showing 2 changed files with 12 additions and 6 deletions.
12 changes: 8 additions & 4 deletions docs/pages/reference/helm-reference/teleport-cluster.mdx
Original file line number Diff line number Diff line change
@@ -109,11 +109,13 @@ This is merged with chart-scoped values and takes precedence in case of conflict
For example, to override the [`postStart`](#postStart) value only for auth pods:
```yaml
# By default all pods postStart command should be "echo starting"
postStart: ["echo", "starting"]
postStart:
command: ["echo", "starting"]

auth:
# But we override the `postStart` value specifically for auth pods
postStart: ["curl", "http://hook"]
postStart:
command: ["curl", "http://hook"]
imagePullPolicy: Always
```
@@ -193,11 +195,13 @@ For example, to override the [`postStart`](#postStart) value only for Teleport P
and annotate the Kubernetes Service deployed for the Teleport Proxy Service:
```yaml
# By default all pods postStart command should be "echo starting"
postStart: ["echo", "starting"]
postStart:
command: ["echo", "starting"]
proxy:
# But we override the `postStart` value specifically for proxy pods
postStart: ["curl", "http://hook"]
postStart:
command: ["curl", "http://hook"]
imagePullPolicy: Always

# We also annotate only the Kubernetes Service sending traffic to Proxy Service pods.
6 changes: 4 additions & 2 deletions examples/chart/teleport-cluster/values.yaml
Original file line number Diff line number Diff line change
@@ -61,7 +61,8 @@ teleportVersionOverride: ""
# For example:
#
# auth:
# postStart: ["curl", "http://hook"]
# postStart:
# command: ["curl", "http://hook"]
# imagePullPolicy: Always
auth:
# auth.teleportConfig contains YAML teleport configuration for auth pods
@@ -84,7 +85,8 @@ auth:
# This is merged with chart-scoped values and takes precedence in case of conflict.
# For example:
# proxy:
# postStart: ["curl", "http://hook"]
# postStart:
# command: ["curl", "http://hook"]
# imagePullPolicy: Always
# annotations:
# service:

0 comments on commit 18ddda1

Please sign in to comment.