2024-04-03 21:11:26 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
|
|
|
name: golang
|
|
|
|
|
|
|
|
---
|
2023-11-22 15:45:57 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: http-header
|
2024-06-22 13:32:18 +00:00
|
|
|
namespace: golang
|
2023-11-22 15:45:57 +00:00
|
|
|
labels:
|
|
|
|
app: golang
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: golang
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: golang
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: http-header
|
2024-06-21 21:38:01 +00:00
|
|
|
image: git.kcrawford.net/kcrawford/golang-http-header:0.0.3
|
2023-11-22 15:45:57 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8000
|
|
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: go-frontend
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: golang
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 80
|
2024-04-03 21:09:35 +00:00
|
|
|
targetPort: 8000
|