-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-deploy.yml
34 lines (34 loc) · 899 Bytes
/
k8s-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: basic-go-api
spec:
replicas: 3
selector:
matchLabels:
app: basic-go-api
template:
metadata:
labels:
app: basic-go-api
spec:
containers:
- name: basic-go-api
image: kpmhughes/basic-go-api:1.0.0
imagePullPolicy: Always
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: basic-go-api-service
spec:
type: NodePort
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: basic-go-api