Despliegue de los pods en kubernetes
Administrator b98d6a3ea5 first commit 6 months ago
network first commit 6 months ago
postgres first commit 6 months ago
.onedev-buildspec.yml first commit 6 months ago
00-randompod.yaml first commit 6 months ago
01-restpod.yaml first commit 6 months ago
02-frontpod.yaml first commit 6 months ago
03-ingress.yaml first commit 6 months ago
04-ingress.yaml first commit 6 months ago
README.md first commit 6 months ago

README.md

INICIALIZACIÓN DEL CLUSTER cat <<EOF | kind create cluster --name=factorytrace-cluster --config=- kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes:

  • role: control-plane extraPortMappings:
    • containerPort: 80 hostPort: 80 protocol: TCP
    • containerPort: 443 hostPort: 443 protocol: TCP EOF

kubectl create namespace factorytrace kubectl create secret generic onedev-secret --from-file=.dockerconfigjson=/root/.docker/config.json --type=kubernetes.io/dockerconfigjson -n factorytrace kubectl config set-context --current --namespace=factorytrace kubectl apply -f https://kind.sigs.k8s.io/examples/ingress/deploy-ingress-nginx.yaml kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.12.16/cert-manager.yaml

FACTORY PODS

kubectl get pods -l run=postgres --namespace=factorytrace -o jsonpath='{.items[].spec.containers[].name}' ##Automatizar

kubectl apply -f postgres/01-postgres-configmap.yaml kubectl apply -f postgres/02-postgres-storage.yaml kubectl apply -f postgres/03-postgres-deployment.yaml kubectl exec -it postgres-66d669bfd7-dnqgq -- psql -h localhost -U factorytrace --password -p 5432 factorytracedb < /root/aslan_factorytrace20250225.sql kubectl apply -f 01-restpod.yaml kubectl apply -f 02-frontpod.yaml

CERTIFICADO kubectl apply -f network/01-issuer.yaml kubectl apply -f network/02-issuer.yaml kubectl apply -f 03-ingress.yaml kubectl apply -f 04-ingress.yaml kubectl delete secret aslanvespot-tls

laena9edf1gknlje Jorgito2009*