golang-http-header/deployment.yaml
Kris Crawford a4a175ae0c
All checks were successful
go-builder / build (push) Successful in 55s
Adding namespace to deployment file
2024-04-03 17:11:26 -04:00

41 lines
615 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: golang
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: http-header
labels:
app: golang
spec:
replicas: 2
selector:
matchLabels:
app: golang
template:
metadata:
labels:
app: golang
spec:
containers:
- name: http-header
image: git.kcrawford.net/kcrawford/golang-http-header:0.0.4
ports:
- containerPort: 8000
---
apiVersion: v1
kind: Service
metadata:
name: go-frontend
spec:
selector:
app: golang
ports:
- protocol: TCP
port: 80
targetPort: 8000