-
Notifications
You must be signed in to change notification settings - Fork 13
/
web.yaml
52 lines (52 loc) · 1.1 KB
/
web.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
50
51
52
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: imageclassifierweb
labels:
app: imageclassifierweb
spec:
replicas: 1
selector:
matchLabels:
app: imageclassifierweb
template:
metadata:
labels:
app: imageclassifierweb
spec:
containers:
- name: imageclassifierweb
image: jpalma/imageclassifierweb:0.1
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
protocol: TCP
resources:
limits:
memory: 1G
cpu: '1'
requests:
memory: 1G
cpu: '1'
dnsPolicy: ClusterFirst
---
apiVersion: v1
kind: Service
metadata:
name: imageclassifierweb
labels:
app: imageclassifierweb
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
service.beta.kubernetes.io/azure-load-balancer-internal-subnet: "secdemosvcsubnet"
spec:
type: LoadBalancer
loadBalancerIP: 10.42.2.232
ports:
- port: 80
targetPort: http
protocol: TCP
name: http
selector:
app: imageclassifierweb