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

k8s-5auth.yaml 866 B

11 months ago
11 months ago
11 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ci4s-auth-deployment
  5. namespace: argo
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: ci4s-auth
  11. template:
  12. metadata:
  13. labels:
  14. app: ci4s-auth
  15. spec:
  16. containers:
  17. - name: ci4s-auth
  18. image: ${k8s-5auth-image}
  19. ports:
  20. - containerPort: 9200
  21. env:
  22. - name: TZ
  23. value: Asia/Shanghai
  24. - name: JAVA_TOOL_OPTIONS
  25. value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005"
  26. ---
  27. apiVersion: v1
  28. kind: Service
  29. metadata:
  30. name: ci4s-auth-service
  31. namespace: argo
  32. spec:
  33. type: NodePort
  34. ports:
  35. - name: http
  36. port: 9200
  37. nodePort: 31206
  38. protocol: TCP
  39. - name: debug
  40. nodePort: 31221
  41. port: 5005
  42. protocol: TCP
  43. targetPort: 5005
  44. selector:
  45. app: ci4s-auth