@@ -43,6 +43,9 @@ jobs:
|
|||||||
--cluster=homelab \
|
--cluster=homelab \
|
||||||
--user=deployer
|
--user=deployer
|
||||||
kubectl config use-context homelab
|
kubectl config use-context homelab
|
||||||
|
# Désactive l'auto-detection du ServiceAccount K8s
|
||||||
|
unset KUBERNETES_SERVICE_HOST
|
||||||
|
unset KUBERNETES_SERVICE_PORT
|
||||||
POD=$(kubectl get pods -n blog -l app=hugo-nginx -o jsonpath='{.items[0].metadata.name}')
|
POD=$(kubectl get pods -n blog -l app=hugo-nginx -o jsonpath='{.items[0].metadata.name}')
|
||||||
kubectl cp public/. blog/${POD}:/usr/share/nginx/html/
|
kubectl cp public/. blog/${POD}:/usr/share/nginx/html/
|
||||||
|
|
||||||
Reference in New Issue
Block a user