-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
39 lines (38 loc) · 742 Bytes
/
deployment.yaml
File metadata and controls
39 lines (38 loc) · 742 Bytes
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
35
36
37
38
39
apiVersion: apps/v1
kind: Deployment
metadata:
name: gcp-devops-gke
spec:
replicas: 1
selector:
matchLabels:
app: gcp
template:
metadata:
labels:
app: gcp
spec:
containers:
- name: gcp-devops-gke
image: gcr.io/gcp-devops-project-421008/gcpdevops:latest
ports:
- containerPort: 3000
env:
- name: PORT
value: "3000"
---
apiVersion: "v1"
kind: "Service"
metadata:
name: "gcp-devops-gke-service"
namespace: "gcp-devops-prod"
labels:
app.kubernetes.io/managed-by: "gcp-cloud-build-deploy"
spec:
ports:
- protocol: "TCP"
port: 80
targetPort: 3000
selector:
app: "gcp"
type: "LoadBalancer"