Compare commits

..

3 Commits

Author SHA1 Message Date
Gitea Actions Bot 0adfa3db5f Auto-update README with current k8s applications
Keycloak Terraform / Terraform (pull_request) Has been cancelled
Generated by CI/CD workflow on 2026-06-04 12:27:28

This PR updates the README.md file with the current list of applications found in the k8s/ directory structure.
2026-06-04 12:27:28 +00:00
Ultradesu 2b26f21649 Fixed proxy.hexor.cy
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 14s
Auto-update README / Generate README and Create MR (push) Failing after 10m48s
Check with kubeconform / lint (push) Failing after 11m55s
2026-06-04 15:24:55 +03:00
Ultradesu 0a3430ea97 Updated pasarguard script
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 34s
Check with kubeconform / lint (push) Successful in 24s
Auto-update README / Generate README and Create MR (push) Failing after 12m45s
2026-06-04 14:52:27 +03:00
3 changed files with 58 additions and 29 deletions
+5 -5
View File
@@ -22,7 +22,7 @@ spec:
entryPoints: entryPoints:
- websecure - websecure
routes: routes:
- match: Host(`secret-reader.hexor.cy`) - match: Host(`proxy.hexor.cy`)
kind: Rule kind: Rule
middlewares: middlewares:
- name: auth-proxy - name: auth-proxy
@@ -30,16 +30,16 @@ spec:
- name: secret-reader - name: secret-reader
port: 80 port: 80
tls: tls:
secretName: secret-reader-tls secretName: proxy-tls
--- ---
apiVersion: cert-manager.io/v1 apiVersion: cert-manager.io/v1
kind: Certificate kind: Certificate
metadata: metadata:
name: secret-reader-tls name: proxy-tls
spec: spec:
secretName: secret-reader-tls secretName: proxy-tls
issuerRef: issuerRef:
name: letsencrypt name: letsencrypt
kind: ClusterIssuer kind: ClusterIssuer
dnsNames: dnsNames:
- secret-reader.hexor.cy - proxy.hexor.cy
+39 -16
View File
@@ -236,29 +236,52 @@ data:
cd /app cd /app
# Start main process in background write_xray_api_port() {
./main & API_PORT="$1"
MAIN_PID=$! case "$API_PORT" in
""|*[!0-9]*)
return
;;
esac
# Start continuous port monitoring in background CURRENT_PORT=""
{ if [ -f /shared/xray-api-port ]; then
sleep 10 # Wait for xray to start initially CURRENT_PORT=$(cat /shared/xray-api-port)
LAST_PORT="" fi
while true; do if [ "$API_PORT" != "$CURRENT_PORT" ]; then
API_PORT=$(netstat -tlpn | grep xray | grep 127.0.0.1 | awk '{print $4}' | cut -d: -f2 | head -1)
if [ -n "$API_PORT" ] && [ "$API_PORT" != "$LAST_PORT" ]; then
echo "Found xray API port: $API_PORT" echo "Found xray API port: $API_PORT"
echo -n "$API_PORT" > /shared/xray-api-port echo -n "$API_PORT" > /shared/xray-api-port
LAST_PORT="$API_PORT"
fi fi
sleep 5 # Check every 5 seconds }
LOG_PIPE="/tmp/pasarguard-main.log"
rm -f "$LOG_PIPE"
mkfifo "$LOG_PIPE"
# Capture main logs so the Xray API listener is not confused with Xray's metrics listener.
{
while IFS= read -r line; do
echo "$line"
case "$line" in
*"transport/internet/tcp: listening TCP on 127.0.0.1:"*)
API_PORT=$(echo "$line" | sed -n 's/.*listening TCP on 127\.0\.0\.1:\([0-9][0-9]*\).*/\1/p')
write_xray_api_port "$API_PORT"
;;
esac
done done
} & } < "$LOG_PIPE" &
PORT_MONITOR_PID=$! LOG_READER_PID=$!
# Start main process in background
./main > "$LOG_PIPE" 2>&1 &
MAIN_PID=$!
# Wait for main process to finish # Wait for main process to finish
wait $MAIN_PID wait $MAIN_PID
MAIN_STATUS=$?
# Clean up port monitor # Clean up log reader
kill $PORT_MONITOR_PID 2>/dev/null wait $LOG_READER_PID 2>/dev/null
rm -f "$LOG_PIPE"
exit $MAIN_STATUS
+8 -2
View File
@@ -116,14 +116,20 @@ spec:
- name: metrics - name: metrics
containerPort: 9550 containerPort: 9550
protocol: TCP protocol: TCP
livenessProbe: startupProbe:
httpGet: httpGet:
path: /scrape path: /scrape
port: metrics port: metrics
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 36
livenessProbe:
tcpSocket:
port: metrics
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 30 periodSeconds: 30
timeoutSeconds: 10 timeoutSeconds: 10
failureThreshold: 3 failureThreshold: 6
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /scrape path: /scrape