apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment spec: selector: matchLabels: app: nginx replicas: 2 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.19.0 ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: name: nginx-svc spec: ports: - port: 80 selector: app: nginx --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: nginx-ingress annotations: kubernetes.io/ingress.class: "nginx" cert-manager.io/issuer: "letest-issuer" spec: tls: - hosts: - letest.infoclinica.ru secretName: letest-tls rules: - host: letest.infoclinica.ru http: paths: - path: / backend: serviceName: nginx-svc servicePort: 80