initial commit

This commit is contained in:
Aaron Riedel 2024-05-29 21:17:25 +02:00
commit f624d485b9
Signed by: aaron
GPG key ID: 643004654D40D577
5 changed files with 133 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
**/secrets.yaml
**/secret.yaml
**/.DS_Store

1
README.md Normal file
View file

@ -0,0 +1 @@
k8s deployments that run in my vcluster

70
app-files/apps.yaml Normal file
View file

@ -0,0 +1,70 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: k8s-deployments-self
namespace: argocd
spec:
project: default
source:
repoURL: https://git.ar21.de/aaron/k8s-deployments.git
targetRevision: HEAD
path: "app-files"
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: false
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd-ingress
namespace: argocd
spec:
project: default
source:
repoURL: https://git.ar21.de/aaron/k8s-deployments.git
targetRevision: HEAD
path: argocd
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
prune: true
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: drone-runner
namespace: argocd
spec:
project: default
source:
- chart: drone/drone-runner-kube
repoURL: https://charts.drone.io
targetRevision: 0.1.10
helm:
releaseName: drone-runner
values: |
extraSecretNamesForEnvFrom:
- drone-secrets
rbac:
buildNamespaces:
- drone
env:
DRONE_RPC_HOST: https://drone.ar21.de
DRONE_RPC_PROTO: https
DRONE_NAMESPACE_DEFAULT: drone
destination:
server: https://kubernetes.default.svc
namespace: drone
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
prune: false

35
argocd/cm.yaml Normal file
View file

@ -0,0 +1,35 @@
---
kind: ConfigMap
apiVersion: v1
metadata:
name: argocd-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
statusbadge.enabled: "true"
resource.customizations: |
networking.k8s.io/Ingress:
health.lua: |
hs = {}
hs.status = "Healthy"
return hs
resource.exclusions: |
- apiGroups:
- cilium.io
kinds:
- CiliumIdentity
clusters:
- "*"
---
kind: ConfigMap
apiVersion: v1
metadata:
name: argocd-cmd-params-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
server.insecure: "true"

24
argocd/ingress.yaml Normal file
View file

@ -0,0 +1,24 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
name: argocd-ingress
namespace: argocd
spec:
rules:
- host: "aaron-argo.services.yolokube.de"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: argocd-server
port:
number: 80
tls:
- hosts:
- aaron-argo.services.yolokube.de
secretName: argocd-tls-key