golang-http-header/deployment.yaml
Kris Crawford dc897a5464
Some checks failed
package-builder / build (push) Failing after 2s
go-builder / build (push) Failing after 2s
Specifying namespace in deployment
2024-06-22 09:32:18 -04:00

42 lines
635 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: golang
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: http-header
namespace: golang
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.3
ports:
- containerPort: 8000
---
apiVersion: v1
kind: Service
metadata:
name: go-frontend
spec:
selector:
app: golang
ports:
- protocol: TCP
port: 80
targetPort: 8000