2020-09-13 21:20:17 +01:00
# Outpost deployment on Kubernetes
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.
```yaml
2020-09-14 14:41:24 +01:00
apiVersion: v1
kind: Secret
2020-09-13 21:20:17 +01:00
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-api
2020-09-14 14:41:24 +01:00
stringData:
2020-09-13 21:20:17 +01:00
passbook_host: '__PASSBOOK_URL__'
passbook_host_insecure: 'true'
token: '__PASSBOOK_TOKEN__'
type: Opaque
---
2020-09-14 14:41:24 +01:00
apiVersion: v1
kind: Service
2020-09-13 21:20:17 +01:00
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:
2020-09-14 14:41:24 +01:00
ports:
- name: http
port: 4180
protocol: TCP
targetPort: http
- name: https
port: 4443
protocol: TCP
targetPort: https
2020-09-13 21:20:17 +01:00
selector:
2020-09-14 14:41:24 +01:00
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
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:
2020-09-13 21:20:17 +01:00
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
2020-09-14 14:41:24 +01:00
template:
2020-09-13 21:20:17 +01:00
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
2020-09-14 14:41:24 +01:00
spec:
2020-09-13 21:20:17 +01:00
containers:
2020-09-14 14:41:24 +01:00
- env:
2020-09-13 21:20:17 +01:00
- name: PASSBOOK_HOST
2020-09-14 14:41:24 +01:00
valueFrom:
secretKeyRef:
2020-09-13 21:20:17 +01:00
key: passbook_host
name: passbook-outpost-api
- name: PASSBOOK_TOKEN
2020-09-14 14:41:24 +01:00
valueFrom:
secretKeyRef:
2020-09-13 21:20:17 +01:00
key: token
name: passbook-outpost-api
- name: PASSBOOK_INSECURE
2020-09-14 14:41:24 +01:00
valueFrom:
secretKeyRef:
2020-09-13 21:20:17 +01:00
key: passbook_host_insecure
name: passbook-outpost-api
2020-09-14 14:41:24 +01:00
image: beryju/passbook-proxy:0.10.0-stable
2020-09-13 21:20:17 +01:00
name: proxy
ports:
- containerPort: 4180
name: http
protocol: TCP
- containerPort: 4443
2020-09-14 14:41:24 +01:00
name: https
2020-09-13 21:20:17 +01:00
protocol: TCP
```