Files
2026-07-26 10:07:10 +02:00

43 lines
696 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
labels:
app: webapp
spec:
replicas: 1
selector:
matchLabels:
app: webapp
template:
metadata:
labels:
app: webapp
spec:
containers:
- name: webapp
image: registry.internal.uia.no/ikt206-g-26v-devops/group30/exam
imagePullPolicy: Always
ports:
- containerPort: 8000
name: http
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: webapp
labels:
app: webapp
spec:
type: ClusterIP
ports:
- port: 8080
targetPort: http
protocol: TCP
name: http
selector:
app: webapp