forked from public/stack
33 lines
496 B
YAML
33 lines
496 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: docs
|
||
|
spec:
|
||
|
replicas: 2
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: docs
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: docs
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: docs
|
||
|
image: git.distrust.co/public/docs
|
||
|
imagePullPolicy: Always
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: docs
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 80
|
||
|
targetPort: 8080
|
||
|
selector:
|
||
|
app: docs
|