[英]Why I cannot deploy charts in microk8s controller but I can do it in LXD
我正在學習 Juju,我覺得它很棒,但是像往常一樣遇到問題,而且周圍很少有人能解釋它是如何工作的。 我希望你們中的任何人都可以指導我。
問題:部署圖表僅適用於 LXD controller。在 microk8s 中不起作用。 我能做什么? 為什么會這樣?
LXD Hypervisor for localhost (that I dont know perfectly what it is)
Controller Model User Access Cloud/Region Models Nodes HA Version
lxd-staging* lxd-staging-model admin superuser localhost/localhost 3 1 none 2.8.7
microk8s-staging microk8s-staging-model admin superuser microk8s/localhost 2 1 - 2.8.7
administrator@master-ubuntu:~$ juju models -c lxd-staging
Controller: lxd-staging
Model Cloud/Region Type Status Machines Access Last connection
controller localhost/localhost lxd available 1 admin just now
default localhost/localhost lxd available 0 admin 3 minutes ago
lxd-staging-model* localhost/localhost lxd available 0 admin 31 seconds ago
administrator@master-ubuntu:~$ juju models -c microk8s-staging
Controller: microk8s-staging
Model Cloud/Region Type Status Access Last connection
controller microk8s/localhost kubernetes available admin just now
microk8s-staging-model* microk8s/localhost kubernetes available admin never connected
administrator@master-ubuntu:~$ juju models
Controller: lxd-staging
Model Cloud/Region Type Status Machines Access Last connection
controller localhost/localhost lxd available 1 admin just now
default localhost/localhost lxd available 0 admin 10 minutes ago
lxd-staging-model* localhost/localhost lxd available 0 admin 8 minutes ago
administrator@master-ubuntu:~$ juju deploy mysql mysqldb
Located charm "cs:mysql-58".
Deploying charm "cs:mysql-58".
administrator@master-ubuntu:~$ juju models
Controller: microk8s-staging
Model Cloud/Region Type Status Access Last connection
controller microk8s/localhost kubernetes available admin just now
microk8s-staging-model* microk8s/localhost kubernetes available admin never connected
administrator@master-ubuntu:~$ juju deploy mysql mysqldb
ERROR series "xenial" in a kubernetes model not valid
發生這種情況是因為在編寫 charm 時並未考慮 Kube.netes。 在理想世界中,這應該無關緊要,但底層子系統卻很重要。 目前正在努力糾正這個問題,但現在你可以為 Kube.netes 使用MariaDB 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.