changes to the ingresses

This commit is contained in:
Aaron Riedel 2023-06-19 07:01:14 +02:00
parent 8a1f144a52
commit 79a22afb98
Signed by: aaron
GPG key ID: 643004654D40D577
5 changed files with 8 additions and 166 deletions

View file

@ -1,39 +0,0 @@
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
namespace: cert-manager
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: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
# The ACME server URL
server: https://acme-staging-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-staging
# Enable the HTTP-01 challenge provider
solvers:
- http01:
ingress:
class: nginx

View file

@ -1,18 +0,0 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: grafana-ingress
namespace: grafana
spec:
rules:
- host: "grafana.apps.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: grafana
port:
number: 80

View file

@ -1,3 +1,7 @@
sidecar:
dashboards:
enabled: true
enabled: true
ingress:
enabled: true
hosts:
- grafana.services.yolokube.de

View file

@ -8,7 +8,7 @@ metadata:
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
spec:
rules:
- host: "prometheus.apps.yolokube.de"
- host: "prometheus.services.yolokube.de"
http:
paths:
- pathType: Prefix
@ -28,7 +28,7 @@ metadata:
nginx.org/basic-auth-secret: prometheus-basic-auth-secret
spec:
rules:
- host: "alertmanager.apps.yolokube.de"
- host: "alertmanager.services.yolokube.de"
http:
paths:
- pathType: Prefix

View file

@ -1,54 +1,3 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld-deployment
labels:
app: helloworld
spec:
replicas: 3
selector:
matchLabels:
app: helloworld
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: helloworld
image: testcontainers/helloworld
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: helloworld-service
spec:
selector:
app: helloworld
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: helloworld-ingress
spec:
rules:
- host: "lb1.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: helloworld-service
port:
number: 80
############### Test
---
apiVersion: v1
@ -99,7 +48,7 @@ metadata:
namespace: aaron-test
spec:
rules:
- host: "test1.apps.yolokube.de"
- host: "test.apps.yolokube.de"
http:
paths:
- pathType: Prefix
@ -109,57 +58,3 @@ spec:
name: test1-service
port:
number: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test2-deployment
namespace: aaron-test
labels:
app: test2
spec:
replicas: 3
selector:
matchLabels:
app: test2
template:
metadata:
labels:
app: test2
spec:
containers:
- name: test2
image: testcontainers/helloworld
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: test2-service
namespace: aaron-test
spec:
selector:
app: test2
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test2-ingress
namespace: aaron-test
spec:
rules:
- host: "test2.apps.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: test2-service
port:
number: 80