add letsencrypt

This commit is contained in:
Aaron Riedel 2022-09-09 15:09:29 +02:00
parent 681d81e219
commit 8d3806043c
Signed by: aaron
GPG key ID: 643004654D40D577
2 changed files with 5520 additions and 0 deletions

70
example-deployment.yaml Normal file
View file

@ -0,0 +1,70 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-prod
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: certs@yolokube.de
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-prod
# Enable the HTTP-01 challenge provider
solvers:
- http01:
ingress:
class: nginx
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-deployment
labels:
app: test
spec:
replicas: 3
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- name: test
image: testcontainers/helloworld
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: test-service
spec:
selector:
app: test
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-ingress
spec:
ingressClassName: nginx
rules:
- host: "test.apps.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: test-service
port:
number: 80

5450
letsencrypt.yaml Normal file

File diff suppressed because it is too large Load diff