MicroK8s : インストール2020/08/12 |
Canonical 社発の軽量 Kubernetes 環境 [MicroK8s] をインストールします。
|
[1] | |
[2] | Snappy から MicroK8s をインストールします。 |
[root@dlp ~]# snap install microk8s --classic microk8s v1.18.6 from Canonical installed |
[2] | MicroK8s インストール後は、自動的に起動しています。停止や起動等は以下のように実行します。 |
# 現在の状態確認 [root@dlp ~]# microk8s status microk8s is running addons: ambassador: disabled cilium: disabled dashboard: disabled dns: disabled fluentd: disabled gpu: disabled helm: disabled helm3: disabled host-access: disabled ingress: disabled istio: disabled jaeger: disabled knative: disabled kubeflow: disabled linkerd: disabled metallb: disabled metrics-server: disabled multus: disabled prometheus: disabled rbac: disabled registry: disabled storage: disabled # 現在の設定確認 [root@dlp ~]# microk8s config apiVersion: v1 clusters: - cluster: certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0..... server: https://10.0.0.30:16443 name: microk8s-cluster contexts: - context: cluster: microk8s-cluster user: admin name: microk8s current-context: microk8s kind: Config preferences: {} users: - name: admin user: token: SzdCcG52TGJRS01rQ3RNa01HVjQydFl3U0g4V2lXS3ZzWStsWStLVjJnVT0K[root@dlp ~]# microk8s kubectl get all NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/kubernetes ClusterIP 10.152.183.1 <none> 443/TCP 81s[root@dlp ~]# microk8s kubectl get nodes NAME STATUS ROLES AGE VERSION dlp.srv.world Ready <none> 95s v1.18.6-1+64f53401f200a7 # MicroK8s を停止する [root@dlp ~]# microk8s stop stop of [microk8s.daemon-apiserver microk8s.daemon-apiserver-kicker microk8s.da… Stopped.
[root@dlp ~]#
microk8s status microk8s is not running. Use microk8s inspect for a deeper inspection. # MicroK8s を開始する [root@dlp ~]# microk8s start Started. # MicroK8s を無効にする [root@dlp ~]# snap disable microk8s microk8s disabled # MicroK8s を有効にする [root@dlp ~]# snap enable microk8s microk8s enabled |
Sponsored Link |
|