Backport of K8s v1 Multiport documentation indentation updates into release/1.17.x (#20862)

backport of commit f943436e0c

Co-authored-by: Austin Workman <austin@hashicorp.com>
pull/20881/head
hc-github-team-consul-core 9 months ago committed by GitHub
parent 01e7c817e3
commit 52383ed7f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -343,7 +343,7 @@ spec:
`9090` and will also select the same pods.
~> Kubernetes 1.24+ only
In Kubernetes 1.24+ you need to [create a Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/secret/#service-account-token-secrets) for each multi-port service that references the ServiceAccount, and the Kubernetes secret must have the same name as the ServiceAccount:
In Kubernetes 1.24+ you need to [create a Kubernetes secret](https://kubernetes.io/docs/concepts/configuration/secret/#service-account-token-secrets) for each additional Consul service associated with the pod in order to expose the Kubernetes ServiceAccount token to the Consul dataplane container running under the pod serviceAccount. The Kubernetes secret name must match the ServiceAccount name:
<CodeBlockConfig filename="multiport-web-secret.yaml">
@ -354,7 +354,7 @@ metadata:
name: web
annotations:
kubernetes.io/service-account.name: web
type: kubernetes.io/service-account-token
type: kubernetes.io/service-account-token
---
apiVersion: v1
kind: Secret
@ -362,7 +362,7 @@ metadata:
name: web-admin
annotations:
kubernetes.io/service-account.name: web-admin
type: kubernetes.io/service-account-token
type: kubernetes.io/service-account-token
```
</CodeBlockConfig>

Loading…
Cancel
Save