|
|
@ -47,6 +47,11 @@ HTTP request with the static text "hello world".
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
apiVersion: v1
|
|
|
|
apiVersion: v1
|
|
|
|
|
|
|
|
kind: ServiceAccount
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
|
|
|
|
name: static-server
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: static-server
|
|
|
|
name: static-server
|
|
|
@ -65,11 +70,6 @@ spec:
|
|
|
|
name: http
|
|
|
|
name: http
|
|
|
|
# If ACLs are enabled, the serviceAccountName must match the Consul service name.
|
|
|
|
# If ACLs are enabled, the serviceAccountName must match the Consul service name.
|
|
|
|
serviceAccountName: static-server
|
|
|
|
serviceAccountName: static-server
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
|
|
|
kind: ServiceAccount
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
|
|
|
|
name: static-server
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
The only change for Connect is the addition of the
|
|
|
|
The only change for Connect is the addition of the
|
|
|
@ -104,6 +104,11 @@ connection via Connect.
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
apiVersion: v1
|
|
|
|
apiVersion: v1
|
|
|
|
|
|
|
|
kind: ServiceAccount
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
|
|
|
|
name: static-client
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
metadata:
|
|
|
|
name: static-client
|
|
|
|
name: static-client
|
|
|
@ -120,11 +125,6 @@ spec:
|
|
|
|
args: [ "while true; do sleep 30; done;" ]
|
|
|
|
args: [ "while true; do sleep 30; done;" ]
|
|
|
|
# If ACLs are enabled, the serviceAccountName must match the Consul service name.
|
|
|
|
# If ACLs are enabled, the serviceAccountName must match the Consul service name.
|
|
|
|
serviceAccountName: static-client
|
|
|
|
serviceAccountName: static-client
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
|
|
|
kind: ServiceAccount
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
|
|
|
|
name: static-client
|
|
|
|
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Pods must specify upstream dependencies with the
|
|
|
|
Pods must specify upstream dependencies with the
|
|
|
|