From 7b9f63af15687266547f8fbe1e58fc226e786e82 Mon Sep 17 00:00:00 2001 From: Luke Kysow <1034429+lkysow@users.noreply.github.com> Date: Fri, 29 Nov 2019 09:17:56 -0800 Subject: [PATCH] Fix helm docs bug If the ServiceAccount isn't applied first, we get an error since the Pod references a non-existing ServiceAccount --- .../source/docs/platform/k8s/connect.html.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/website/source/docs/platform/k8s/connect.html.md b/website/source/docs/platform/k8s/connect.html.md index 5be81bd91f..07b43e426b 100644 --- a/website/source/docs/platform/k8s/connect.html.md +++ b/website/source/docs/platform/k8s/connect.html.md @@ -47,6 +47,11 @@ HTTP request with the static text "hello world". ```yaml apiVersion: v1 +kind: ServiceAccount +metadata: + name: static-server +--- +apiVersion: v1 kind: Pod metadata: name: static-server @@ -65,11 +70,6 @@ spec: name: http # If ACLs are enabled, the serviceAccountName must match the Consul service name. serviceAccountName: static-server ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: static-server ``` The only change for Connect is the addition of the @@ -104,6 +104,11 @@ connection via Connect. ```yaml apiVersion: v1 +kind: ServiceAccount +metadata: + name: static-client +--- +apiVersion: v1 kind: Pod metadata: name: static-client @@ -120,11 +125,6 @@ spec: args: [ "while true; do sleep 30; done;" ] # If ACLs are enabled, the serviceAccountName must match the Consul service name. serviceAccountName: static-client ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: static-client ``` Pods must specify upstream dependencies with the