deployment.yaml 757 B

123456789101112131415161718192021222324252627282930313233343536
  1. apiVersion: v1
  2. kind: Deployment
  3. metadata:
  4. name: oauth
  5. namespace: dolphin
  6. spec:
  7. selector:
  8. matchLabels:
  9. app: oauth
  10. template:
  11. metadata:
  12. labels:
  13. app: oauth
  14. spec:
  15. containers:
  16. - name: oauth
  17. image: registry.cn-hangzhou.aliyuncs.com/oauth:1001
  18. volumeMounts:
  19. - name: config
  20. mountPath: /app/app.properties
  21. subPath: app.properties
  22. resources:
  23. limits:
  24. memory: "2Gi"
  25. cpu: "1000m"
  26. requests:
  27. memory: "10Mi"
  28. cpu: "11m"
  29. ports:
  30. - containerPort: 80
  31. imagePullSecrets:
  32. - name: registrykey
  33. volumes:
  34. - name: config
  35. configMap:
  36. name: oauth