mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-18 23:07:15 +00:00
34 lines
480 B
YAML
34 lines
480 B
YAML
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: certbot
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
---
|
|
apiVersion: networking.k8s.io/v1beta1
|
|
kind: Ingress
|
|
metadata:
|
|
name: certbot
|
|
spec:
|
|
rules:
|
|
- http:
|
|
paths:
|
|
- path: /.well-known/acme-challenge/
|
|
backend:
|
|
serviceName: certbot
|
|
servicePort: 80
|
|
---
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: certbot
|
|
subsets:
|
|
- addresses:
|
|
- ip: A.B.C.D
|
|
ports:
|
|
- port: 8000
|
|
protocol: TCP
|
|
|