-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathdeployment.yml
52 lines (52 loc) · 1.15 KB
/
deployment.yml
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/v1
kind: Deployment
metadata:
name: static-example
labels:
app: static-example
spec:
replicas: 1
selector:
matchLabels:
app: static-example
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
app: static-example
spec:
containers:
- name: static-example
image: <IMAGE>
ports:
- containerPort: 5000
resources:
requests:
cpu: 100m
limits:
cpu: 100m
imagePullSecrets:
- name: asb
---
apiVersion: v1
kind: Service
metadata:
name: static-example-service
annotations:
external-dns.alpha.kubernetes.io/hostname: "doctl-action.do-api.dev"
service.beta.kubernetes.io/do-loadbalancer-name: "doctl-action.do-api.dev"
service.beta.kubernetes.io/do-loadbalancer-certificate-id: "913a4f25-dd44-47e0-8588-eb09f095c7e2"
service.beta.kubernetes.io/do-loadbalancer-redirect-http-to-https: "true"
spec:
type: LoadBalancer
ports:
- name: https
protocol: TCP
port: 443
targetPort: 5000
selector:
app: static-example