-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes.yaml
49 lines (49 loc) · 1.03 KB
/
kubernetes.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
47
48
49
apiVersion: apps/v1
kind: Deployment
metadata:
name: transcription-project.WebApp
spec:
replicas: 1
selector:
matchLabels:
app: transcription-project.WebApp
template:
metadata:
labels:
app: transcription-project.WebApp
version: IMAGE_LABEL
spec:
containers:
- name: transcription-project.WebApp
image: ACL_URL/transcription-project.WebApp:IMAGE_URL
ports:
- containerPort: 80
resources: {}
---
apiVersion: v1
kind: Service
metadata:
name: transcription-project.WebApp
spec:
type: NodePort
selector:
app: transcription-project.WebApp
ports:
- port: 80
targetPort: 80
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: transcription-project.WebApp
annotations:
kubernates.io/ingress.class: addon-http-application-routing
spec:
rules:
- host: transcription-project.WebApp.AKS_URL
http:
paths:
- backend:
serviceName: transcription-project.WebApp
servicePort: 80
path: /