12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- kind: Deployment
- apiVersion: apps/v1
- metadata:
- name: whoami
- labels:
- app: containous
- name: whoami
- spec:
- replicas: 2
- selector:
- matchLabels:
- app: containous
- task: whoami
- template:
- metadata:
- labels:
- app: containous
- task: whoami
- spec:
- containers:
- - name: containouswhoami
- image: eugeniucarvalho1/teste:0.0.1
- ports:
- - containerPort: 8000
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: whoami
- spec:
- ports:
- - name: http
- port: 80
- targetPort: 8000
- selector:
- app: containous
- task: whoami
- ---
- kind: Ingress
- apiVersion: networking.k8s.io/v1beta1
- metadata:
- name: myingress
- annotations:
- traefik.ingress.kubernetes.io/router.entrypoints: web, websecure
- # traefik.ingress.kubernetes.io/router.tls.certresolver: letse
- spec:
- rules:
- - host: k8s.eugeniocarvalho.dev
- http:
- paths:
- - path: ""
- backend:
- serviceName: whoami
- servicePort: 80
|