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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
| kind: Deployment apiVersion: apps/v1 metadata: name: webdav namespace: work labels: app: webdav annotations: deployment.kubernetes.io/revision: '1' kubesphere.io/alias-name: webdav kubesphere.io/creator: admin spec: replicas: 1 selector: matchLabels: app: webdav template: metadata: creationTimestamp: null labels: app: webdav annotations: logging.kubesphere.io/logsidecar-config: '{}' spec: volumes: - name: host-time hostPath: path: /etc/localtime type: '' - name: baidu-download hostPath: path: /xxxx/xxxx/xxxx type: '' containers: - name: container-n48vyd image: 'ugeek/webdav:amd64' ports: - name: tcp-80 containerPort: 80 protocol: TCP env: - name: USERNAME value: xxxxxx - name: PASSWORD value: xxxxxx - name: TZ value: Aisa/Shanghai - name: UDI value: '1000' - name: GID value: '1000' resources: limits: cpu: 500m memory: 1000Mi volumeMounts: - name: host-time mountPath: /etc/localtime - name: baidu-download mountPath: /media terminationMessagePath: /dev/termination-log terminationMessagePolicy: File imagePullPolicy: IfNotPresent restartPolicy: Always terminationGracePeriodSeconds: 30 dnsPolicy: ClusterFirst serviceAccountName: default serviceAccount: default securityContext: {} schedulerName: default-scheduler strategy: type: RollingUpdate rollingUpdate: maxUnavailable: 25% maxSurge: 25% revisionHistoryLimit: 10 progressDeadlineSeconds: 600
------- kind: Service apiVersion: v1 metadata: name: webdav-31103 namespace: work labels: app: webdav-31103 annotations: kubesphere.io/creator: admin spec: ports: - name: http-80 protocol: TCP port: 80 targetPort: 80 nodePort: 31103 selector: app: webdav clusterIP: 10.233.42.254 clusterIPs: - 10.233.42.254 type: NodePort sessionAffinity: None externalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack
|