-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubeTaller.yaml
58 lines (58 loc) · 1.01 KB
/
kubeTaller.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
53
54
55
56
57
58
apiVersion: v1
kind: Service
metadata:
name: apicasas
labels:
app: apicasas
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
selector:
app: apicasas
type: LoadBalancer
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: apicasas
labels:
app: apicasas
spec:
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: apicasas
spec:
containers:
- image: contenedorestaller.azurecr.io/proyecto
name: apicasas
ports:
- containerPort: 80
name: http
resources:
limits:
cpu: 900m
requests:
cpu: 100m
imagePullSecrets:
- name: secretapi2
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: apicasas
spec:
scaleTargetRef:
kind: Deployment
name: apicasas
minReplicas: 2
maxReplicas: 4
targetCPUUtilizationPercentage: 70