-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdepl1.yml
21 lines (20 loc) · 950 Bytes
/
depl1.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
apiVersion: apps/v1
kind: Deployment # Type of Kubernetes resource
metadata:
name: minisrv # Name of the Kubernetes resource
spec:
replicas: 3 # Number of pods to run at any given time
selector:
matchLabels:
app: minisrv # This deployment applies to any Pods matching the specified label
template: # This deployment will create a set of pods using the configurations in this template
metadata:
labels: # The labels that will be applied to all of the pods in this deployment
app: minisrv
spec: # Spec for the container which will run in the Pod
containers:
- name: minisrv
image: localhost:6000/minisrv
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080 # Should match the port number that the Go application listens on