Fix degraded apps: add nessus to project, remove duplicate guacamole route, update prometheus CRDs to v0.89.0

This commit is contained in:
Scooby Husky
2026-03-09 22:32:15 -05:00
parent 11eddf4971
commit 086a2bf406
5 changed files with 29 additions and 35 deletions
-33
View File
@@ -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
+2
View File
@@ -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: '*'
+1 -1
View File
@@ -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"
+25
View File
@@ -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"