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

Blog

<スポンサーリンク>

helmに書き直さないと、、、と思ったけど大丈夫そうだった

 

マニュフェストファイル

apiVersion: v1
kind: Pod
metadata:
  name: $$NAME
spec:
  containers:
  - name: nginx
    image: nginx
    imagePullPolicy: IfNotPresent

 

実行

cat nginx-pod.yaml | sed s/\$\$NAME/nginx-test/ | kubectl create -f -

 

起動確認

yuta:~ $ kubectl get pod nginx-test
NAME         READY   STATUS    RESTARTS   AGE
nginx-test   1/1     Running   0          78s
yuta:~ $

 

 

<スポンサーリンク>

コメントを残す

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

*

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