deployment.yaml 1.1 KB
Newer Older
1 2 3 4 5
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: websiteinfo
E
edisonxiang 已提交
6
  namespace: website
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  labels:
    app: websiteinfo
  annotations:
    flux.weave.works/automated: "true"
    flux.weave.works/tag.nginxinfod: semver:~1.0
spec:
  strategy:
    rollingUpdate:
      maxUnavailable: 0
    type: RollingUpdate
  selector:
    matchLabels:
      app: websiteinfo
  template:
    metadata:
      annotations:
        prometheus.io/scrape: "true"
      labels:
        app: websiteinfo
    spec:
      containers:
      - name: websiteinfod
29
        image: swr.cn-south-1.myhuaweicloud.com/openeuler/website:v1.0.202009041822574238
30 31 32 33 34
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 80
          name: http
          protocol: TCP
E
edisonxiang 已提交
35 36 37 38 39 40 41 42 43 44 45
        - containerPort: 443
          name: https
          protocol: TCP
        volumeMounts:
        - mountPath: /etc/nginx/ssl
          name: secret-volume
        - mountPath: /etc/nginx/conf.d
          name: configmap-volume
      volumes:
      - name: secret-volume
        secret:
E
edisonxiang 已提交
46
          secretName: websitesvcsecret
E
edisonxiang 已提交
47 48
      - name: configmap-volume
        configMap:
E
edisonxiang 已提交
49
          name: websitesvcconfigmap