init
This commit is contained in:
26
bootstrap/argocd/ingress.yaml
Normal file
26
bootstrap/argocd/ingress.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: argocd
|
||||
namespace: argocd
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-production
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- argocd.prod.t01tt.tech
|
||||
secretName: argocd-tls
|
||||
rules:
|
||||
- host: argocd.prod.t01tt.tech
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: argocd-server
|
||||
port:
|
||||
number: 80
|
||||
29
bootstrap/argocd/install.sh
Executable file
29
bootstrap/argocd/install.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
KUBECONFIG="/home/mrt0rtikize/infra/yandex-prod/kubeconfig"
|
||||
KCTL="kubectl --kubeconfig ${KUBECONFIG}"
|
||||
|
||||
echo "=== Installing ArgoCD ==="
|
||||
|
||||
helm repo add argo https://argoproj.github.io/argo-helm 2>/dev/null || true
|
||||
helm repo update
|
||||
|
||||
helm upgrade --install argocd argo/argo-cd \
|
||||
--namespace argocd \
|
||||
--create-namespace \
|
||||
--values "$(dirname "$0")/values.yaml" \
|
||||
--wait \
|
||||
--timeout 300s
|
||||
|
||||
echo ""
|
||||
echo "=== ArgoCD installed ==="
|
||||
echo ""
|
||||
echo "To access ArgoCD UI:"
|
||||
echo " kubectl --kubeconfig ${KUBECONFIG} port-forward svc/argocd-server -n argocd 8080:80"
|
||||
echo ""
|
||||
echo "Admin password:"
|
||||
kubectl --kubeconfig ${KUBECONFIG} -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
|
||||
echo ""
|
||||
echo ""
|
||||
echo "Login with username: admin"
|
||||
20
bootstrap/argocd/values.yaml
Normal file
20
bootstrap/argocd/values.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
server:
|
||||
extraArgs:
|
||||
- --insecure
|
||||
|
||||
configs:
|
||||
params:
|
||||
server.insecure: true
|
||||
cm:
|
||||
timeout.reconciliation: 180s
|
||||
helm.timeoutSeconds: "300"
|
||||
resource.customizations.health.networking.k8s.io_Ingress: |
|
||||
hs = {}
|
||||
hs.status = "Healthy"
|
||||
hs.message = "Ingress is synced"
|
||||
return hs
|
||||
|
||||
redis:
|
||||
image:
|
||||
repository: docker.io/library/redis
|
||||
tag: 7.4-alpine
|
||||
Reference in New Issue
Block a user