init: basic k8s deployment on DO

This commit is contained in:
2024-01-09 17:39:03 +01:00
commit b826035b3a
15 changed files with 362 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-argocd
namespace: argocd
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
cert-manager.io/issuer: letsencrypt-argocd
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: argocd-server
port:
name: http
host: argocd.kemkas.hu
tls:
- hosts:
- argocd.kemkas.hu
secretName: letsencrypt-argocd
+5
View File
@@ -0,0 +1,5 @@
server:
ingress:
enabled: "true"
extraArgs:
- "--insecure"
+20
View File
@@ -0,0 +1,20 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-argocd
namespace: argocd
spec:
# ACME issuer configuration
# `email` - the email address to be associated with the ACME account (make sure it's a valid one)
# `server` - the URL used to access the ACME servers directory endpoint
# `privateKeySecretRef` - Kubernetes Secret to store the automatically generated ACME account private key
acme:
email: developer@kemkas.hu
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-argocd-private-key
solvers:
# Use the HTTP-01 challenge provider
- http01:
ingress:
class: nginx