forked from Azure-Samples/openhack-containers
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwcf-app.yaml
43 lines (43 loc) · 801 Bytes
/
wcf-app.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: wcf-service
namespace: wcf-app
spec:
replicas: 1
template:
metadata:
name: wcf-service
labels:
app: wcf-service
spec:
nodeSelector:
"beta.kubernetes.io/os": windows
containers:
- name: wcf-service
image: registrykty1185.azurecr.io/wcfservice:1.0
resources:
limits:
cpu: 1000m
memory: 800M
requests:
cpu: 100m
memory: 300M
ports:
- containerPort: 80
selector:
matchLabels:
app: wcf-service
---
apiVersion: v1
kind: Service
metadata:
name: wcf-service
namespace: wcf-app
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 80
selector:
app: wcf-service