-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathHelloWorld.yaml
44 lines (44 loc) · 926 Bytes
/
HelloWorld.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
kind: Namespace
apiVersion: v1
metadata:
name: helloworld-demo
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld-deployment
namespace: helloworld-demo
spec:
progressDeadlineSeconds: 180
selector:
matchLabels:
app: helloworld
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: helloworld
# enter the path to your image, be sure to include the correct region prefix
image: iad.ocir.io/ax022wvgmjpq/helloworld:v1
ports:
- containerPort: 8888
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: helloworld-service
namespace: helloworld-demo
annotations:
service.beta.kubernetes.io/oci-load-balancer-shape: "10Mbps"
spec:
type: LoadBalancer
ports:
- port: 8080
protocol: TCP
targetPort: 8888
selector:
app: helloworld