创建资产
[root@kube-master ~]# kubectl apply -f https://addons.kuboard.cn/kuboard/kuboard-v3.yaml
查看对应资源
[root@kube-master ~]# kubectl get pod -n kuboard
NAME READY STATUS RESTARTS AGE
kuboard-agent-2-5c4f8867fb-tz9cf 1/1 Running 5 (27m ago) 8h
kuboard-agent-67867f4564-4ngvt 1/1 Running 4 (29m ago) 8h
kuboard-etcd-4kk89 1/1 Running 4 (30m ago) 8h
kuboard-questdb-5c5b699654-rh5rg 1/1 Running 2 (30m ago) 8h
kuboard-v3-5fc46b5557-w7wxk 1/1 Running 4 (27m ago) 8h
查看service对象
[root@kube-master ~]# kubectl get svc -n kuboard
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kuboard-v3 NodePort 10.103.100.7 <none> 80:30080/TCP,10081:30081/TCP,10081:30081/UDP 8h
浏览器查看 IP+30080
用户名:admin 密码: Kuboard123
通过声明式配置yaml 创建名称空间
$ vim namespace.yaml apiVersion: v1 kind: Namespace metadata: name: webserver
$ kubectl apply -f namespace.yaml
# 如果通过命令行创建
$ kubectl create namespace webserver
# 删除名称空间[注意,这将删除名称空间下的所有资源]
$ kubectl delete namespace webserver