mirror of
https://gitlab.kube.huskypup.net/Scooby/Homelabv4.git
synced 2026-08-20 23:16:49 +00:00
Fix degraded apps: add nessus to project, remove duplicate guacamole route, update prometheus CRDs to v0.89.0
This commit is contained in:
@@ -1,33 +0,0 @@
|
|||||||
apiVersion: gateway.networking.k8s.io/v1
|
|
||||||
kind: HTTPRoute
|
|
||||||
metadata:
|
|
||||||
name: guacamole
|
|
||||||
namespace: guacamole
|
|
||||||
spec:
|
|
||||||
parentRefs:
|
|
||||||
- name: edge
|
|
||||||
namespace: gateway
|
|
||||||
sectionName: https
|
|
||||||
hostnames:
|
|
||||||
- guacamole.kube.huskypup.net
|
|
||||||
rules:
|
|
||||||
- matches:
|
|
||||||
- path:
|
|
||||||
type: PathPrefix
|
|
||||||
value: /guacamole
|
|
||||||
filters:
|
|
||||||
- type: URLRewrite
|
|
||||||
urlRewrite:
|
|
||||||
path:
|
|
||||||
type: ReplacePrefixMatch
|
|
||||||
replacePrefixMatch: /
|
|
||||||
backendRefs:
|
|
||||||
- name: guacamole
|
|
||||||
port: 8080
|
|
||||||
- matches:
|
|
||||||
- path:
|
|
||||||
type: PathPrefix
|
|
||||||
value: /
|
|
||||||
backendRefs:
|
|
||||||
- name: guacamole
|
|
||||||
port: 8080
|
|
||||||
@@ -49,6 +49,8 @@ spec:
|
|||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
- namespace: istio-system
|
- namespace: istio-system
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
|
- namespace: nessus
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
clusterResourceWhitelist:
|
clusterResourceWhitelist:
|
||||||
- group: '*'
|
- group: '*'
|
||||||
kind: '*'
|
kind: '*'
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ name: prometheus-operator-crds
|
|||||||
description: Prometheus Operator CRDs installation
|
description: Prometheus Operator CRDs installation
|
||||||
type: application
|
type: application
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
appVersion: "v0.76.0"
|
appVersion: "v0.89.0"
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ spec:
|
|||||||
set -e
|
set -e
|
||||||
echo "Installing Prometheus Operator CRDs..."
|
echo "Installing Prometheus Operator CRDs..."
|
||||||
|
|
||||||
PROM_OPERATOR_VERSION="v0.76.0"
|
PROM_OPERATOR_VERSION="v0.89.0"
|
||||||
|
|
||||||
kubectl apply --server-side -f "https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/${PROM_OPERATOR_VERSION}/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml"
|
kubectl apply --server-side -f "https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/${PROM_OPERATOR_VERSION}/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml"
|
||||||
kubectl apply --server-side -f "https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/${PROM_OPERATOR_VERSION}/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml"
|
kubectl apply --server-side -f "https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/${PROM_OPERATOR_VERSION}/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml"
|
||||||
|
|||||||
Executable
+25
@@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# argocd-add-hostaliases.sh
|
||||||
|
# Add hostAliases to ArgoCD server for Authentik OIDC
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
echo "=== Adding hostAliases to ArgoCD server ==="
|
||||||
|
|
||||||
|
NS=argocd
|
||||||
|
EDGE_IP=$(kubectl get svc -n istio-system istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
||||||
|
|
||||||
|
echo "Istio edge gateway IP: $EDGE_IP"
|
||||||
|
|
||||||
|
if kubectl get deployment argocd-server -n "${NS}" -o jsonpath='{.spec.template.spec.hostAliases}' | grep -q "${EDGE_IP}"; then
|
||||||
|
echo "✅ argocd-server already has hostAliases configured"
|
||||||
|
else
|
||||||
|
echo "Adding hostAliases to argocd-server..."
|
||||||
|
kubectl patch deployment argocd-server -n "${NS}" --type='json' -p="[{\"op\": \"add\", \"path\": \"/spec/template/spec/hostAliases\", \"value\": [{\"ip\": \"${EDGE_IP}\", \"hostnames\": [\"auth.kube.huskypup.net\"]}]}]"
|
||||||
|
echo "✅ hostAliases added to argocd-server"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "=== hostAliases configuration complete ==="
|
||||||
|
echo "ArgoCD will now route auth.kube.huskypup.net through Istio edge gateway (${EDGE_IP})"
|
||||||
|
echo "This ensures proper SSL certificate validation for Authentik OIDC"
|
||||||
Reference in New Issue
Block a user