You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.2 KiB

3 years ago
3 years ago
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: gva-web
  5. annotations:
  6. flipped-aurora/gin-vue-admin: ui
  7. github: "https://github.com/flipped-aurora/yibu.git"
  8. app.kubernetes.io/version: 0.0.1
  9. labels:
  10. app: gva-web
  11. version: gva-vue3
  12. spec:
  13. replicas: 1
  14. selector:
  15. matchLabels:
  16. app: gva-web
  17. version: gva-vue3
  18. template:
  19. metadata:
  20. labels:
  21. app: gva-web
  22. version: gva-vue3
  23. spec:
  24. containers:
  25. - name: yibu-nginx-container
  26. image: registry.cn-hangzhou.aliyuncs.com/yibu/web:40fc3aa6
  27. imagePullPolicy: IfNotPresent
  28. ports:
  29. - containerPort: 8080
  30. name: http
  31. readinessProbe:
  32. tcpSocket:
  33. port: 8080
  34. initialDelaySeconds: 10
  35. periodSeconds: 10
  36. successThreshold: 1
  37. failureThreshold: 3
  38. resources:
  39. limits:
  40. cpu: 500m
  41. memory: 1000Mi
  42. requests:
  43. cpu: 100m
  44. memory: 100Mi
  45. volumeMounts:
  46. - mountPath: /etc/nginx/conf.d/
  47. name: nginx-config
  48. volumes:
  49. - name: nginx-config
  50. configMap:
  51. name: my.conf