-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial configurations for ProxyServer001: create ClusterIssuer, …
…Ingress, and Service definitions
- Loading branch information
1 parent
e941121
commit 76b3be1
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
--- |