docs: update kubernetes deployment example

This commit is contained in:
Jens Langhammer 2020-09-14 15:41:24 +02:00
parent 6a669992a8
commit 17a9e02bc0
1 changed files with 56 additions and 56 deletions

View File

@ -5,8 +5,8 @@ Use the following manifest, replacing all values surrounded with `__`.
Afterwards, configure the proxy provider to connect to `<service name>.<namespace>.svc.cluster.local`, and update your Ingress to connect to the `passbook-outpost` service. Afterwards, configure the proxy provider to connect to `<service name>.<namespace>.svc.cluster.local`, and update your Ingress to connect to the `passbook-outpost` service.
```yaml ```yaml
api_version: v1 apiVersion: v1
kind: secret kind: Secret
metadata: metadata:
labels: labels:
app.kubernetes.io/instance: test app.kubernetes.io/instance: test
@ -14,65 +14,14 @@ metadata:
app.kubernetes.io/name: passbook-proxy app.kubernetes.io/name: passbook-proxy
app.kubernetes.io/version: 0.10.0 app.kubernetes.io/version: 0.10.0
name: passbook-outpost-api name: passbook-outpost-api
string_data: stringData:
passbook_host: '__PASSBOOK_URL__' passbook_host: '__PASSBOOK_URL__'
passbook_host_insecure: 'true' passbook_host_insecure: 'true'
token: '__PASSBOOK_TOKEN__' token: '__PASSBOOK_TOKEN__'
type: Opaque type: Opaque
--- ---
api_version: apps/v1 apiVersion: v1
kind: deployment kind: Service
metadata:
labels:
app.kubernetes.io/instance: test
app.kubernetes.io/managed-by: passbook.beryju.org
app.kubernetes.io/name: passbook-proxy
app.kubernetes.io/version: 0.10.0
name: passbook-outpost
spec:
selector:
match_labels:
app.kubernetes.io/instance: test
app.kubernetes.io/managed-by: passbook.beryju.org
app.kubernetes.io/name: passbook-proxy
app.kubernetes.io/version: 0.10.0
template:
metadata:
labels:
app.kubernetes.io/instance: test
app.kubernetes.io/managed-by: passbook.beryju.org
app.kubernetes.io/name: passbook-proxy
app.kubernetes.io/version: 0.10.0
spec:
containers:
- env:
- name: PASSBOOK_HOST
value_from:
secret_key_ref:
key: passbook_host
name: passbook-outpost-api
- name: PASSBOOK_TOKEN
value_from:
secret_key_ref:
key: token
name: passbook-outpost-api
- name: PASSBOOK_INSECURE
value_from:
secret_key_ref:
key: passbook_host_insecure
name: passbook-outpost-api
image: beryju/passbook-proxy:0.10.0
name: proxy
ports:
- containerPort: 4180
name: http
protocol: TCP
- containerPort: 4443
name: http
protocol: TCP
---
api_version: v1
kind: service
metadata: metadata:
labels: labels:
app.kubernetes.io/instance: test app.kubernetes.io/instance: test
@ -96,4 +45,55 @@ spec:
app.kubernetes.io/name: passbook-proxy app.kubernetes.io/name: passbook-proxy
app.kubernetes.io/version: 0.10.0 app.kubernetes.io/version: 0.10.0
type: ClusterIP type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: test
app.kubernetes.io/managed-by: passbook.beryju.org
app.kubernetes.io/name: passbook-proxy
app.kubernetes.io/version: 0.10.0
name: passbook-outpost
spec:
selector:
matchLabels:
app.kubernetes.io/instance: test
app.kubernetes.io/managed-by: passbook.beryju.org
app.kubernetes.io/name: passbook-proxy
app.kubernetes.io/version: 0.10.0
template:
metadata:
labels:
app.kubernetes.io/instance: test
app.kubernetes.io/managed-by: passbook.beryju.org
app.kubernetes.io/name: passbook-proxy
app.kubernetes.io/version: 0.10.0
spec:
containers:
- env:
- name: PASSBOOK_HOST
valueFrom:
secretKeyRef:
key: passbook_host
name: passbook-outpost-api
- name: PASSBOOK_TOKEN
valueFrom:
secretKeyRef:
key: token
name: passbook-outpost-api
- name: PASSBOOK_INSECURE
valueFrom:
secretKeyRef:
key: passbook_host_insecure
name: passbook-outpost-api
image: beryju/passbook-proxy:0.10.0-stable
name: proxy
ports:
- containerPort: 4180
name: http
protocol: TCP
- containerPort: 4443
name: https
protocol: TCP
``` ```