- Updated all OpenTelemetry packages to latest versions: - opentelemetry-api: 1.27.0 → 1.39.1 - opentelemetry-sdk: 1.27.0 → 1.39.1 - opentelemetry-exporter-otlp-proto-grpc: 1.27.0 → 1.39.1 - opentelemetry-exporter-otlp-proto-http: 1.27.0 → 1.39.1 - opentelemetry-instrumentation-fastapi: 0.48b0 → 0.60b1 - opentelemetry-instrumentation-httpx: 0.48b0 → 0.60b1 - opentelemetry-instrumentation-redis: 0.48b0 → 0.60b1 - opentelemetry-instrumentation-sqlalchemy: 0.48b0 → 0.60b1 - Removed prometheus-client==0.23.1 from all services - Unified all services to use the same monitoring package versions Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
66 lines
1.9 KiB
Bash
Executable File
66 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Setup Docker Hub image pull secrets for all namespaces
|
|
# This script creates docker-registry secrets for pulling images from Docker Hub
|
|
|
|
set -e
|
|
|
|
# Docker Hub credentials
|
|
DOCKER_SERVER="docker.io"
|
|
DOCKER_USERNAME="uals"
|
|
DOCKER_PASSWORD="dckr_pat_zzEY5Q58x1S0puraIoKEtbpue3A"
|
|
DOCKER_EMAIL="ualfaro@gmail.com"
|
|
SECRET_NAME="dockerhub-creds"
|
|
|
|
# List of namespaces used in the project
|
|
NAMESPACES=(
|
|
"bakery-ia"
|
|
"bakery-ia-dev"
|
|
"bakery-ia-prod"
|
|
"default"
|
|
)
|
|
|
|
echo "Setting up Docker Hub image pull secrets..."
|
|
echo "==========================================="
|
|
echo ""
|
|
|
|
for namespace in "${NAMESPACES[@]}"; do
|
|
echo "Processing namespace: $namespace"
|
|
|
|
# Create namespace if it doesn't exist
|
|
if ! kubectl get namespace "$namespace" >/dev/null 2>&1; then
|
|
echo " Creating namespace: $namespace"
|
|
kubectl create namespace "$namespace"
|
|
fi
|
|
|
|
# Delete existing secret if it exists
|
|
if kubectl get secret "$SECRET_NAME" -n "$namespace" >/dev/null 2>&1; then
|
|
echo " Deleting existing secret in namespace: $namespace"
|
|
kubectl delete secret "$SECRET_NAME" -n "$namespace"
|
|
fi
|
|
|
|
# Create the docker-registry secret
|
|
echo " Creating Docker Hub secret in namespace: $namespace"
|
|
kubectl create secret docker-registry "$SECRET_NAME" \
|
|
--docker-server="$DOCKER_SERVER" \
|
|
--docker-username="$DOCKER_USERNAME" \
|
|
--docker-password="$DOCKER_PASSWORD" \
|
|
--docker-email="$DOCKER_EMAIL" \
|
|
-n "$namespace"
|
|
|
|
echo " ✓ Secret created successfully in namespace: $namespace"
|
|
echo ""
|
|
done
|
|
|
|
echo "==========================================="
|
|
echo "Docker Hub secrets setup completed!"
|
|
echo ""
|
|
echo "The secret '$SECRET_NAME' has been created in all namespaces:"
|
|
for namespace in "${NAMESPACES[@]}"; do
|
|
echo " - $namespace"
|
|
done
|
|
echo ""
|
|
echo "Next steps:"
|
|
echo "1. Apply Kubernetes manifests with imagePullSecrets configured"
|
|
echo "2. Verify pods can pull images: kubectl get pods -A"
|