mirror of https://github.com/hashicorp/consul
Fix helm docs bug
If the ServiceAccount isn't applied first, we get an error since the Pod references a non-existing ServiceAccountpull/6854/head
parent
fd3c56ff68
commit
7b9f63af15
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue