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

Blog

<スポンサーリンク>

メッセージ内容

privilegestrueだと怒られてデプロイできない

The Deployment "test" is invalid: spec.template.spec.containers[0].
securityContext.privileged: Forbidden: disallowed by cluster policy

許容する設定を入れる

vim /var/snap/microk8s/current/args/kubelet
vim /var/snap/microk8s/current/args/kube-apiserver

パラメーターを追加

--allow-privileged=true

変更反映

systemctl restart snap.microk8s.daemon-kubelet.service
systemctl restart snap.microk8s.daemon-apiserver.service

<スポンサーリンク>

コメントを残す

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

*

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