apiVersion: apps/v1 kind: Deployment metadata: name: template namespace: development labels: app: template spec: replicas: 1 selector: matchLabels: app: template strategy: type: Recreate template: metadata: labels: app: template spec: nodeSelector: kubernetes.io/arch: amd64 imagePullSecrets: - name: regcred restartPolicy: Always containers: - name: template image: docker.sciocatti.com/template:0.0.1 imagePullPolicy: Always ports: - containerPort: 50001 name: template-port --- apiVersion: v1 kind: Service metadata: name: template-service namespace: development spec: selector: app: template ports: - name: template-port port: 3000 targetPort: 50001 protocol: TCP --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: template-ingress namespace: development annotations: cert-manager.io/cluster-issuer: letsencrypt-prod traefik.ingress.kubernetes.io/router.entrypoints: web, websecure spec: rules: - host: template.sciocatti.com http: paths: - path: / pathType: Prefix backend: service: name: template-service port: number: 3000 tls: - hosts: - template.sciocatti.com secretName: template-sciocatti-com-tls