apiVersion: extensions/v1beta1 kind: Deployment metadata: name: libresh spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - env: image: indiepaas/website:latest imagePullPolicy: Always name: libresh ports: - containerPort: 80 --- apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: kubernetes.io/tls-acme: "true" certmanager.k8s.io/cluster-issuer: letsencrypt-prod name: libre-sh namespace: libre-sh spec: rules: - host: libresh.test.indie.host http: paths: - backend: serviceName: libresh-web servicePort: http path: / tls: - hosts: - libresh.test.indie.host secretName: libresh-tls --- apiVersion: v1 kind: Service metadata: name: libresh-web namespace: libre-sh spec: ports: - name: http port: 80 protocol: TCP targetPort: 80 selector: app: nginx