|
@@ -0,0 +1,67 @@
|
|
|
+kind: Deployment
|
|
|
+apiVersion: apps/v1
|
|
|
+metadata:
|
|
|
+ name: stilton
|
|
|
+ labels:
|
|
|
+ app: cheese
|
|
|
+ cheese: stilton
|
|
|
+spec:
|
|
|
+ replicas: 2
|
|
|
+ selector:
|
|
|
+ matchLabels:
|
|
|
+ app: cheese
|
|
|
+ task: stilton
|
|
|
+ template:
|
|
|
+ metadata:
|
|
|
+ labels:
|
|
|
+ app: cheese
|
|
|
+ task: stilton
|
|
|
+ version: v0.0.1
|
|
|
+ spec:
|
|
|
+ containers:
|
|
|
+ - name: cheese
|
|
|
+ image: eugeniucarvalho1/teste:0.0.1
|
|
|
+ ports:
|
|
|
+ - containerPort: 8000
|
|
|
+---
|
|
|
+apiVersion: v1
|
|
|
+kind: Service
|
|
|
+metadata:
|
|
|
+ name: stilton
|
|
|
+spec:
|
|
|
+ ports:
|
|
|
+ - name: http
|
|
|
+ targetPort: 8000
|
|
|
+ port: 80
|
|
|
+ selector:
|
|
|
+ app: cheese
|
|
|
+ task: stilton
|
|
|
+
|
|
|
+---
|
|
|
+apiVersion: v1
|
|
|
+kind: Secret
|
|
|
+metadata:
|
|
|
+ name: supersecret
|
|
|
+data:
|
|
|
+ tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0=
|
|
|
+ tls.key: LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCi0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0=
|
|
|
+
|
|
|
+---
|
|
|
+kind: Ingress
|
|
|
+apiVersion: networking.k8s.io/v1beta1
|
|
|
+metadata:
|
|
|
+ name: cheese
|
|
|
+ annotations:
|
|
|
+ traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
|
+ traefik.ingress.kubernetes.io/router.tls: "true"
|
|
|
+spec:
|
|
|
+ tls:
|
|
|
+ - secretName: supersecret
|
|
|
+ rules:
|
|
|
+ - host: traefik.eugeniocarvalho.dev
|
|
|
+ http:
|
|
|
+ paths:
|
|
|
+ - path: ""
|
|
|
+ backend:
|
|
|
+ serviceName: stilton
|
|
|
+ servicePort: http
|