Skip to content

Commit

Permalink
Add initial configurations for ProxyServer001: create ClusterIssuer, …
Browse files Browse the repository at this point in the history
…Ingress, and Service definitions
  • Loading branch information
EliasDeHondt committed Jan 19, 2025
1 parent e941121 commit 76b3be1
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Supercluster/Cluster01/ProxyServer001/ClusterIssuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
############################
# @author Elias De Hondt #
# @see https://eliasdh.com #
# @since 24/11/2024 #
############################
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
namespace: proxyserver001
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: elias.dehondt@outlook.com
privateKeySecretRef:
name: letsencrypt-prod-key
solvers:
- http01:
ingress:
class: nginx
---
34 changes: 34 additions & 0 deletions Supercluster/Cluster01/ProxyServer001/Ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
############################
# @author Elias De Hondt #
# @see https://eliasdh.com #
# @since 24/11/2024 #
############################
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
namespace: proxyserver001
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- app.levelup.be
secretName: applevelup-tls
rules:
- host: app.levelup.be
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: proxyserver001-service
port:
number: 80
---
15 changes: 15 additions & 0 deletions Supercluster/Cluster01/ProxyServer001/Service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
############################
# @author Elias De Hondt #
# @see https://eliasdh.com #
# @since 24/11/2024 #
############################
---
apiVersion: v1
kind: Service
metadata:
name: proxyserver001-service
namespace: proxyserver001
spec:
type: ExternalName
externalName: 192.168.1.103
---

0 comments on commit 76b3be1

Please sign in to comment.