argocd kustomization

This commit is contained in:
Victor Barba Martin 2021-10-29 17:37:53 +02:00
parent 83ec1aae5b
commit 44436417d6
7 changed files with 19 additions and 40 deletions

View File

@ -49,9 +49,6 @@ helm install cert-manager cert-manager \
# Create cluster-issuer # Create cluster-issuer
kubectl apply -f k8s/cert-manager/cluster-issuer.yaml kubectl apply -f k8s/cert-manager/cluster-issuer.yaml
# Create SSL Cert
kubectl apply -f k8s/cert-manager/certificate-staging.yaml
# Install ArgoCD # Install ArgoCD
kubectl create namespace argocd kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

View File

@ -10,7 +10,7 @@ metadata:
haproxy-ingress.github.io/backend-protocol: "h1-ssl" haproxy-ingress.github.io/backend-protocol: "h1-ssl"
spec: spec:
rules: rules:
- host: &host argocd.video.jamkazam.com - host: example.com
http: http:
paths: paths:
- path: / - path: /
@ -22,5 +22,5 @@ spec:
name: https name: https
tls: tls:
- hosts: - hosts:
- *host - example.com
secretName: argocd-secret # do not change, this is provided by Argo CD secretName: argocd-secret # do not change, this is provided by Argo CD

View File

@ -1,7 +1,7 @@
--- ---
- op: replace - op: replace
path: /spec/rules/0/host path: /spec/rules/0/host
value: &host argocd.staging.video.jamkazam.com value: argocd.staging.video.jamkazam.com
- op: replace - op: replace
path: /spec/tls/0/hosts/0 path: /spec/tls/0/hosts/0
value: *host value: argocd.staging.video.jamkazam.com

View File

@ -1,13 +1,13 @@
# apiVersion: v1 apiVersion: v1
# kind: Service kind: Service
# metadata: metadata:
# name: haproxy-exporter name: haproxy-exporter
# namespace: ingress-controller namespace: ingress-controller
# spec: spec:
# ports: ports:
# - name: exporter - name: exporter
# port: 9105 port: 9105
# targetPort: exporter targetPort: exporter
# selector: selector:
# app.kubernetes.io/instance: haproxy-ingress app.kubernetes.io/instance: haproxy-ingress
# app.kubernetes.io/name: haproxy-ingress app.kubernetes.io/name: haproxy-ingress

View File

@ -1,22 +1,3 @@
# apiVersion: monitoring.coreos.com/v1
# kind: ServiceMonitor
# metadata:
# name: haproxy
# labels:
# app: haproxy
# release: monitoring
# spec:
# selector:
# matchLabels:
# app.kubernetes.io/instance: haproxy-ingress
# app.kubernetes.io/name: haproxy-ingress
# namespaceSelector:
# matchNames:
# - ingress-controller
# endpoints:
# - port: exporter
# path: /metrics
# interval: 30s
apiVersion: monitoring.coreos.com/v1 apiVersion: monitoring.coreos.com/v1
kind: PodMonitor kind: PodMonitor

View File

@ -1,6 +1,7 @@
apiVersion: monitoring.coreos.com/v1 apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule kind: PrometheusRule
metadata: metadata:
namespace:
creationTimestamp: null creationTimestamp: null
labels: labels:
prometheus: example prometheus: example