Skip to content

Commit

Permalink
fix: Corrected postStart examples
Browse files Browse the repository at this point in the history
  • Loading branch information
milos-teleport authored and github-actions committed Dec 10, 2024
1 parent 76e843b commit e2151a8
Show file tree
Hide file tree
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
Expand Up @@ -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
```
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 4 additions & 2 deletions examples/chart/teleport-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit e2151a8

Please sign in to comment.