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

WIP: Add Kargo Stack #45

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions kargo/kargo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kargo
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: kargo
server: "https://kubernetes.default.svc"
source:
repoURL: cnoe://kargo
targetRevision: HEAD
path: "."
project: default
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
28 changes: 28 additions & 0 deletions kargo/kargo/cert-manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cert-manager
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
server: "https://kubernetes.default.svc"
namespace: cert-manager
source:
chart: cert-manager
repoURL: https://charts.jetstack.io
targetRevision: 1.14.5
helm:
releaseName: cert-manager
valueFiles:
- values.yaml
values: |
installCRDs: true
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
73 changes: 73 additions & 0 deletions kargo/kargo/kargo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
apiVersion: v1
kind: Namespace
metadata:
name: kargo
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: kargo-helm
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
server: "https://kubernetes.default.svc"
namespace: kargo
source:
chart: kargo
repoURL: ghcr.io/akuity/kargo-charts
targetRevision: 1.0.3
helm:
parameters:
- name: api.ingress.tls.enabled
value: "false"
- name: api.tls.selfSignedCert
value: "true"
- name: api.secret.name
value: kargo-api
project: default
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kargo-api
namespace: kargo
annotations:
# We need the ingress to pass through ssl traffic to the vCluster
# This only works for the nginx-ingress (enable via --enable-ssl-passthrough
# https://kubernetes.github.io/ingress-nginx/user-guide/tls/#ssl-passthrough )
# for other ingress controllers please check their respective documentation.
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
ingressClassName: "nginx"
rules:
- host: kargo.cnoe.localtest.me
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: kargo-api
port:
number: 443
---
apiVersion: v1
data:
ADMIN_ACCOUNT_PASSWORD_HASH: JDJhJDEwJFpyaGhpZTR2THo1eWd0VlNhaWY2by5xTjM2amdzNnZqdE1CZE02eXJVMUZPZWlBQU1NeE9t
ADMIN_ACCOUNT_TOKEN_SIGNING_KEY: aXdpc2h0b3dhc2hteWlyaXNod3Jpc3R3YXRjaA==
kind: Secret
metadata:
labels:
name: kargo-api
namespace: kargo
type: Opaque
Loading