-
Notifications
You must be signed in to change notification settings - Fork 0
/
aks-badfather.yaml
43 lines (43 loc) · 1018 Bytes
/
aks-badfather.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
#DC:a file manifesting what I want - It's declarative - stored in my repo
#https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
apiVersion: apps/v1
kind: Deployment
metadata:
name: cr7-web1
spec:
replicas: 2
selector:
matchLabels:
app: cr7-web1
template:
metadata:
labels:
app: cr7-web1
spec:
containers:
- name: cr7-web1
image: dc2containerregistry.azurecr.io/images/badfather
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: cr7-web1
annotations:
service.beta.kubernetes.io/azure-load-balancer-tcp-idle-timeout: "4"
# service.beta.kubernetes.io/azure-load-balancer-internal: "true"
# service.beta.kubernetes.io/azure-load-balancer-internal-subnet: "svc"
spec:
type: LoadBalancer
ports:
- port: 80
selector:
app: cr7-web1