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-13oauth2.yaml 897 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ci4s-oauth2-authenticator-deployment
  5. namespace: argo
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: ci4s-oauth2-authenticator
  11. template:
  12. metadata:
  13. labels:
  14. app: ci4s-oauth2-authenticator
  15. spec:
  16. containers:
  17. - name: ci4s-oauth2-authenticator
  18. image: 172.20.32.187/ci4s/spring-oauth2-authenticator:latest
  19. env:
  20. - name: DB_URL
  21. value: mysql.argo.svc:3306
  22. - name: DB_USERNAME
  23. value: root
  24. - name: DB_PASSWORD
  25. value: qazxc123456.
  26. ports:
  27. - containerPort: 8080
  28. ---
  29. apiVersion: v1
  30. kind: Service
  31. metadata:
  32. name: ci4s-oauth2-authenticator-service
  33. namespace: argo
  34. spec:
  35. type: NodePort
  36. ports:
  37. - name: http
  38. port: 8080
  39. nodePort: 31080
  40. protocol: TCP
  41. selector:
  42. app: ci4s-oauth2-authenticator