yapi
# PersistentVolumeClaim
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: birenchong-devops-yapi-data-pvc
namespace: birenchong-devops
annotations:
kubesphere.io/creator: admin
pv.kubernetes.io/bind-completed: 'yes'
pv.kubernetes.io/bound-by-controller: 'yes'
volume.beta.kubernetes.io/storage-provisioner: efs.csi.aws.com
finalizers:
- kubernetes.io/pvc-protection
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
volumeName: pvc-9xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxd
storageClassName: efs-sc-dynamic
volumeMode: Filesystem
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Deployment
kind: Deployment
apiVersion: apps/v1
metadata:
name: birenchong-devops-tool-yapi-v1
namespace: birenchong-devops
labels:
app: birenchong-devops-tool-yapi
version: v1
annotations:
deployment.kubernetes.io/revision: '3'
kubesphere.io/creator: admin
spec:
replicas: 1
selector:
matchLabels:
app: birenchong-devops-tool-yapi
version: v1
template:
metadata:
creationTimestamp: null
labels:
app: birenchong-devops-tool-yapi
version: v1
annotations:
logging.kubesphere.io/logsidecar-config: '{}'
spec:
volumes:
- name: volume-eqlm3h
persistentVolumeClaim:
claimName: birenchong-devops-yapi-data-pvc
containers:
- name: devops-yapi
image: 'harbor.birenchong.cn/devops/yapi:1.0'
command:
- node
args:
- /yapi/vendors/server/app.js
ports:
- name: tcp-3000
containerPort: 3000
protocol: TCP
- name: tcp-9090
containerPort: 9090
protocol: TCP
resources: {}
volumeMounts:
- name: volume-eqlm3h
mountPath: /yapi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
nodeSelector:
env: devops
serviceAccountName: default
serviceAccount: default
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
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
63
64
65
66
67
68
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
63
64
65
66
67
68
# Service-NodePort
kind: Service
apiVersion: v1
metadata:
name: birenchong-devops-tool-yapi
namespace: birenchong-devops
labels:
app: birenchong-devops-tool-yapi
version: v1
annotations:
kubesphere.io/creator: admin
kubesphere.io/serviceType: statelessservice
spec:
ports:
- name: tcp-3000
protocol: TCP
port: 3000
targetPort: 3000
nodePort: 31340
- name: tcp-9090
protocol: TCP
port: 9090
targetPort: 9090
nodePort: 31420
selector:
app: birenchong-devops-tool-yapi
clusterIP: 10.100.194.204
clusterIPs:
- 10.100.194.204
type: NodePort
sessionAffinity: None
externalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
internalTrafficPolicy: Cluster
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
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
Last Updated: 2023/11/08, 14:45:54