gva-web-deploymemt.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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/gin-vue-admin.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: gin-vue-admin-nginx-container
  26. image: registry.cn-hangzhou.aliyuncs.com/gva/web:latest
  27. imagePullPolicy: Always
  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