Advertisement
Guest User

Untitled

a guest
Jul 7th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.99 KB | None | 0 0
  1. apiVersion: v1
  2. kind: ServiceAccount
  3. metadata:
  4. namespace: default
  5. name: traefik-ingress-controller
  6.  
  7. ---
  8. kind: Deployment
  9. apiVersion: apps/v1
  10. metadata:
  11. namespace: default
  12. name: traefik
  13. labels:
  14. app: traefik
  15.  
  16. spec:
  17. replicas: 2
  18. selector:
  19. matchLabels:
  20. app: traefik
  21. template:
  22. metadata:
  23. labels:
  24. app: traefik
  25. spec:
  26. serviceAccountName: traefik-ingress-controller
  27. volumes:
  28. - name: acme
  29. hostPath:
  30. path: /storage/config/traefik
  31. containers:
  32. - name: traefik
  33. image: traefik:v2.2
  34. args:
  35. - --api.insecure
  36. - --accesslog
  37. - --entrypoints.web.Address=:80
  38. - --entrypoints.websecure.Address=:443
  39. - --providers.kubernetescrd
  40. - --certificatesresolvers.letsencrypt.acme.tlschallenge
  41. - --certificatesresolvers.letsencrypt.acme.email=jamiestinson1@icloud.com
  42. - --certificatesresolvers.letsencrypt.acme.storage=/data/acme.json
  43. # Please note that this is the staging Let's Encrypt server.
  44. # Once you get things working, you should remove that whole line altogether.
  45. - --certificatesresolvers.letsencrypt.acme.caserver=https://acme-v02.api.letsencrypt.org/directory
  46. ports:
  47. - name: web
  48. containerPort: 80
  49. - name: websecure
  50. containerPort: 443
  51. - name: admin
  52. containerPort: 8080
  53. volumeMounts:
  54. - name: acme
  55. mountPath: /data
  56.  
  57. ---
  58. kind: Deployment
  59. apiVersion: apps/v1
  60. metadata:
  61. namespace: default
  62. name: whoami
  63. labels:
  64. app: whoami
  65.  
  66. spec:
  67. replicas: 2
  68. selector:
  69. matchLabels:
  70. app: whoami
  71. template:
  72. metadata:
  73. labels:
  74. app: whoami
  75. spec:
  76. containers:
  77. - name: whoami
  78. image: containous/whoami
  79. ports:
  80. - name: web
  81. containerPort: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement