Brc's blog
首页
前端
后端
运维
  • 工作笔记
  • 分类
  • 标签
  • 归档
关于

Brc

努力中
首页
前端
后端
运维
  • 工作笔记
  • 分类
  • 标签
  • 归档
关于
  • 工具安装

  • AWS

  • EKS

    • 扩缩容

    • 存储

    • devops

      • 保密字典
      • nacos
      • yapi
        • PersistentVolumeClaim
        • Deployment
        • Service-NodePort
      • jfrog
      • fluentd
      • SkyWalking
      • Retool
      • harbor
      • gitlab
      • openresty
      • sentry
    • test

    • CICD

    • 问题
  • 其他

  • AWS创建EKS集群
  • 谷歌云创建GKE集群
  • 工作笔记
  • EKS
  • devops
Brc
2023-06-11
目录

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

# 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

# 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
#yapi
Last Updated: 2023/11/08, 14:45:54
nacos
jfrog

← nacos jfrog→

最近更新
01
谷歌云创建GKE集群
07-26
02
ElastiCacheForRedis启用密码
07-26
03
upload-to-gcs
06-29
更多文章>
Theme by Vdoing | Copyright © 2021-2024 Brc | MIT License | 浙ICP备19031881号-4
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式