-
Notifications
You must be signed in to change notification settings - Fork 27
/
k8s-gateway.yml
62 lines (62 loc) · 1.39 KB
/
k8s-gateway.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
53
54
55
56
57
58
59
60
61
62
---
apiVersion: v1
kind: Service
metadata:
name: gateway
spec:
selector:
k8s-app: gateway
ports:
- protocol: TCP
name: http
port: 8080
targetPort: 8080
type: NodePort
---
kind: DaemonSet
apiVersion: apps/v1
metadata:
name: gateway
namespace: default
labels:
k8s-app: gateway
annotations:
deployment.kubernetes.io/revision: '2'
spec:
selector:
matchLabels:
k8s-app: gateway
template:
metadata:
name: gateway
labels:
k8s-app: gateway
spec:
containers:
- name: gateway
ports:
- containerPort: 8080
hostPort: 8080
name: 8080tcp80800
protocol: TCP
image: registry.cn-hangzhou.aliyuncs.com/suxiaolin/gateway:latest
livenessProbe:
httpGet:
scheme: HTTP
path: "/actuator/info"
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
resources: {}
terminationMessagePath: "/dev/termination-log"
terminationMessagePolicy: File
imagePullPolicy: Always
securityContext:
privileged: false
procMount: Default
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
revisionHistoryLimit: 10