蛋蛋星球-客户端
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

56 righe
1.4 KiB

  1. kind: Deployment
  2. apiVersion: apps/v1
  3. metadata:
  4. name: egg-pc
  5. namespace: egg
  6. labels:
  7. app: egg-pc
  8. annotations:
  9. kubesphere.io/creator: dengbiao
  10. kubesphere.io/description: egg-pc
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. app: egg-pc
  16. template:
  17. metadata:
  18. labels:
  19. app: egg-pc
  20. spec:
  21. volumes:
  22. - name: host-time
  23. hostPath:
  24. path: /etc/localtime
  25. type: ''
  26. - name: egg-pc-nginx
  27. configMap:
  28. name: egg-pc-nginx
  29. items:
  30. - key: pc.conf
  31. path: default.conf
  32. defaultMode: 420
  33. - name: egg-pc
  34. persistentVolumeClaim:
  35. claimName: egg-pc
  36. containers:
  37. - name: container-pc
  38. image: 'registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/nginx:latest'
  39. ports:
  40. - name: tcp-80
  41. containerPort: 80
  42. protocol: TCP
  43. resources: {}
  44. volumeMounts:
  45. - name: host-time
  46. readOnly: true
  47. mountPath: /etc/localtime
  48. - name: egg-pc-nginx
  49. readOnly: true
  50. mountPath: /etc/nginx/conf.d/default.conf
  51. subPath: default.conf
  52. - name: egg-pc
  53. mountPath: /usr/share/nginx/html
  54. restartPolicy: Always
  55. terminationGracePeriodSeconds: 30
  56. dnsPolicy: ClusterFirst