-
Notifications
You must be signed in to change notification settings - Fork 27
/
k8s.yml
50 lines (50 loc) · 1.21 KB
/
k8s.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
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: jframework
namespace: default
labels:
k8s-app: jframework
annotations:
deployment.kubernetes.io/revision: '2'
spec:
replicas: 1
selector:
matchLabels:
k8s-app: jframework
template:
metadata:
name: jframework
labels:
k8s-app: jframework
spec:
containers:
- name: jframework
image: registry.cn-hangzhou.aliyuncs.com/suxiaolin/jframework:latest
livenessProbe:
httpGet:
scheme: HTTP
path: "/heartbeat"
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
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600