apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    name: wxedge
  name: wxedge
  namespace: pcdn
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      name: wxedge
  template:
    metadata:
      labels:
        name: wxedge
    spec:
      containers:
        - image: registry.cn-hangzhou.aliyuncs.com/onething/wxedge
          imagePullPolicy: IfNotPresent
          name: wxedge
          ports:
            - containerPort: 18888
              name: http
              protocol: TCP
          securityContext:
            privileged: true
          volumeMounts:
            - mountPath: /storage
              name: storage
      volumes:
        - name: storage
          persistentVolumeClaim:
            claimName: wxedge-data

---
apiVersion: v1
kind: Service
metadata:
  labels:
    name: wxedge
  name: wxedge
  namespace: pcdn
spec:
  ports:
    - name: http
      nodePort: 30068
      port: 18888
      protocol: TCP
      targetPort: 18888
  selector:
    name: wxedge
  sessionAffinity: None
  type: NodePort

发表回复

您的电子邮箱地址不会被公开。

Captcha Code