株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

Deployment起動

kubectl run aks-nginx-deployment --image=nginx --labels="app=nginx" 
--replicas=3

ホスト名をこぴる

for PODNAME in `kubectl get pods -l app=nginx \
-o jsonpath='{.items[*].metadata.name}'` ; \
do kubectl exec -it ${PODNAME} -- \
cp /etc/hostname /usr/share/nginx/html/index.html; \
done

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)