-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathgettingstarted-manifest.yaml
46 lines (46 loc) · 1.12 KB
/
gettingstarted-manifest.yaml
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
40
41
42
43
44
45
46
kind: Namespace
apiVersion: v1
metadata:
name: ${namespace}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-gettingstarted-deployment
namespace: ${namespace}
spec:
selector:
matchLabels:
app: node-gettingstarted
replicas: 3
template:
metadata:
labels:
app: node-gettingstarted
spec:
containers:
- name: node-gettingstarted
# enter the path to your image, be sure to include the correct region prefix
image: iad.ocir.io/ociobenablement/node-express-getting-starter:${BUILDRUN_HASH}
imagePullPolicy: Always
ports:
- containerPort: 3000
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: node-gettingstarted-service
namespace: ${namespace}
annotations:
service.beta.kubernetes.io/oci-load-balancer-shape: "flexible"
service.beta.kubernetes.io/oci-load-balancer-shape-flex-min: "10"
service.beta.kubernetes.io/oci-load-balancer-shape-flex-max: "100"
spec:
type: LoadBalancer
ports:
- port: 80
protocol: TCP
targetPort: 3000
selector:
app: node-gettingstarted