12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- ---
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: nginx-acme
- data:
- index.html: |
- ACME-DNS
- ---
- 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
- volumeMounts:
- - mountPath: /usr/share/nginx/html
- name: homepage
- volumes:
- - name: homepage
- configMap:
- name: nginx-acme
- ---
- 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:
- - "*.infoklinika.ru"
- secretName: wildcard-infoklinika-tls
- rules:
- - host: "*.infoklinika.ru"
- http:
- paths:
- - path: /
- backend:
- serviceName: nginx-svc
- servicePort: 80
|