Skip to content

Commit

Permalink
add(CD): argocd declarative setup and configs
Browse files Browse the repository at this point in the history
  • Loading branch information
thelissimus committed Jan 8, 2024
1 parent 5671c59 commit 756f0f8
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
20 changes: 20 additions & 0 deletions k8s/argocd/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: hs-challenge
spec:
destination:
name: ""
namespace: prod
server: "https://kubernetes.default.svc"
source:
path: ./k8s/
repoURL: "https://github.com/thelissimus/hs-challenge"
targetRevision: HEAD
sources: []
project: default
syncPolicy:
automated:
prune: false
selfHeal: false
syncOptions: []
6 changes: 6 additions & 0 deletions k8s/argocd/argocd-cmd-params-cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cmd-params-cm
data:
server.insecure: "true"
22 changes: 22 additions & 0 deletions k8s/argocd/argocd-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: argocd-ingress
namespace: argocd
annotations:
alb.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
ingressClassName: nginx
rules:
- http:
paths:
- pathType: Prefix
path: /
backend:
service:
name: argocd-server
port:
name: http
host: cd.keilambda.com
10 changes: 10 additions & 0 deletions k8s/argocd/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argocd

resources:
- argocd-ingress.yaml
- https://raw.githubusercontent.com/argoproj/argo-cd/v2.9.3/manifests/install.yaml

patches:
- path: argocd-cmd-params-cm.yaml

0 comments on commit 756f0f8

Please sign in to comment.