forked from public/stack
35 lines
584 B
YAML
35 lines
584 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: website
|
||
|
spec:
|
||
|
replicas: 2
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: website
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: website
|
||
|
annotations:
|
||
|
pod.kubernetes.io/lifetime: 300s
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: website
|
||
|
image: codeberg.org/distrust/milksad-distrust-co
|
||
|
imagePullPolicy: Always
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: website
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 80
|
||
|
targetPort: 80
|
||
|
selector:
|
||
|
app: website
|