This commit is contained in:
ari committed 2023-02-21 06:26:57 +00:00
1 parent ac97667c43
commit 58506c88d4
9 files changed
+144 -26

No files matched your search

@@ -0,0 +1,52 @@
# ---
# apiVersion: argoproj.io/v1alpha1
# kind: Application
# metadata:
# name: "{{ .Release.Name }}"
# namespace: "{{ .Release.Namespace }}"
# spec:
# project: default
# source:
# repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
# targetRevision: "{{ .Values.selfapp.commit }}"
# path: k8s/infra/argocd
# helm:
# parameters:
# - name: "selfapp.sshkey"
# value: {{ .Values.selfapp.sshkey | quote }}
# destination:
# server: https://kubernetes.default.svc
# namespace: "{{ .Release.Namespace }}"
# # syncPolicy:
# # automated:
# # prune: false
# # selfHeal: true
# # allowEmpty: true
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: "infra"
namespace: "{{ .Release.Namespace }}"
spec:
generators:
- git:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
targetRevision: "{{ .Values.selfapp.commit }}"
directories:
- path: k8s/infra/*
template:
metadata:
name: '{{path.basename}}'
spec:
project: "default"
source:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
targetRevision: "{{ .Values.selfapp.commit }}"
path: '{{path}}'
destination:
server: https://kubernetes.default.svc
namespace: '{{path.basename}}'
syncPolicy:
syncOptions:
- CreateNamespace=true
+10
View File
@@ -14,6 +14,16 @@ spec:
services:
- name: argocd-server
port: 80
passHostHeader: true
responseForwarding:
flushInterval: 1ms
scheme: https
- name: argocd-server
port: 443
passHostHeader: true
responseForwarding:
flushInterval: 1ms
scheme: https
- kind: Rule
match: {{ .Values.selfapp.traefikRule }} && Headers(`Content-Type`, `application/grpc`)
priority: 11
+14
View File
@@ -0,0 +1,14 @@
---
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: infra
namespace: "{{ .Release.Namespace }}"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: Infrastructure
sourceRepos:
- '*'
destinations:
- server: https://kubernetes.default.svc
-25
View File
@@ -1,25 +0,0 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: "{{ .Release.Name }}"
namespace: "{{ .Release.Namespace }}"
spec:
project: default
source:
repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git"
targetRevision: "{{ .Values.selfapp.commit }}"
path: k8s/infra/argocd
helm:
parameters:
- name: "selfapp.sshkey"
value: {{ .Values.selfapp.sshkey | quote }}
destination:
server: https://kubernetes.default.svc
namespace: "{{ .Release.Namespace }}"
# syncPolicy:
# automated:
# prune: false
# selfHeal: true
# allowEmpty: true
+2 -1
View File
@@ -7,4 +7,5 @@ selfapp:
commit: "stable"
repo: "asosnovsky/homelab"
sshkey: ""
traefikRule: Host(`argocd.sosnovsky.ca`)
# traefikRule: Host(`argocd.sosnovsky.ca`)
traefikRule: Path(`/argo`)
+23
View File
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
+5
View File
@@ -0,0 +1,5 @@
apiVersion: v2
name: misc
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
+38
View File
@@ -0,0 +1,38 @@
---
apiVersion: v1
kind: Service
metadata:
name: traefik-dashboard
namespace: kube-system
labels:
app.kubernetes.io/instance: traefik
app.kubernetes.io/name: traefik-dashboard
spec:
type: ClusterIP
ports:
- name: traefik
port: 9000
targetPort: traefik
protocol: TCP
selector:
app.kubernetes.io/instance: traefik
app.kubernetes.io/name: traefik
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: traefik-ingress
namespace: kube-system
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- http:
paths:
- path: /traefik
pathType: Prefix
backend:
service:
name: traefik-dashboard
port:
number: 9000
View File
Whitespace-only changes.