-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathtext-compare-arm.yaml
More file actions
44 lines (43 loc) · 990 Bytes
/
text-compare-arm.yaml
File metadata and controls
44 lines (43 loc) · 990 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
40
41
42
43
44
# Setup loocally
# 1. Build image for ARM platform
# docker build -t text-compare-angular . -f Dockerfile-ARM
# 2. Deploy to k8s:
# kubectl apply -f k8s/text-compare.yaml
# 3. Create service in minikube:
# minikube service text-compare-service
# 4. Access the url from step 3.
apiVersion: apps/v1
kind: Deployment
metadata:
name: text-compare-deployment
labels:
app: text-compare
spec:
replicas: 1
selector:
matchLabels:
app: text-compare
template:
metadata:
labels:
app: text-compare
spec:
containers:
- name: text-compare
image: jojozhuang/text-compare-angular
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: text-compare-service
spec:
selector:
app: text-compare
type: LoadBalancer # assign an external IP address to accept external request
ports:
- protocol: TCP
port: 12011
targetPort: 80
nodePort: 31000 # must be between 30000 and 32767