Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🇰Add keel.sh #91

Merged
merged 13 commits into from
Jan 27, 2024
12 changes: 12 additions & 0 deletions kubernetes/argocd/stacks/common/argo_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,15 @@ stringData:
name: external-dns
url: https://kubernetes-sigs.github.io/external-dns/
type: helm
---
apiVersion: v1
kind: Secret
metadata:
name: keel
namespace: keelsh
labels:
argocd.argoproj.io/secret-type: repository
stringData:
name: keel
url: https://charts.keel.sh
type: helm
70 changes: 70 additions & 0 deletions kubernetes/argocd/stacks/common/keel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: keelsh
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: keelsh
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
destination:
namespace: keelsh
server: 'https://kubernetes.default.svc'
sources:
- repoURL: 'https://charts.keel.sh'
chart: 'keel'
targetRevision: '1.0.3'
helm:
values: |
service:
enabled: true
type: ClusterIP
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: keelsh
namespace: keelsh
annotations:
external-dns.alpha.kubernetes.io/target: app.acmuic.org
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: "Host(`keel.acmuic.org`) || Host(`www.keel.acmuic.org`)"
services:
- kind: Service
name: keel
namespace: keelsh
passHostHeader: true
port: keel
responseForwarding:
flushInterval: 1ms
scheme: http
strategy: RoundRobin
weight: 10
tls:
secretName: keel-tls
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: keel-tls
namespace: keelsh
spec:
dnsNames:
- keel.acmuic.org
secretName: keel-tls
issuerRef:
kind: ClusterIssuer
name: letsencrypt
Comment on lines +31 to +70
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should put this in a separate keel stack folder.

5 changes: 5 additions & 0 deletions kubernetes/argocd/stacks/sparkhacks/sparkhacks-2024.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ kind: Deployment
metadata:
name: sparkhacks-2024
namespace: sparkhacks
annotations:
keel.sh/policy: force
keel.sh/trigger: poll
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

spec:
replicas: 1
selector:
Expand All @@ -15,6 +18,8 @@ spec:
labels:
app.kubernetes.io/name: sparkhacks-2024
spec:
strategy:
type: Recreate # hell on earth.
containers:
- name: sparkhacks-2024
image: "ghcr.io/sparkhacks/sparkweb:main"
Expand Down
Loading