发布一个k8s部署视频:https://edu.csdn.net/course/detail/26967
课程内容:各种k8s部署方式。包括minikube部署,kubeadm部署,kubeasz部署,rancher部署,k3s部署。包括开发测试环境部署k8s,和生产环境部署k8s。
腾讯课堂连接地址https://ke.qq.com/course/478827?taid=4373109931462251&tuin=ba64518
第二个视频发布 https://edu.csdn.net/course/detail/27109
腾讯课堂连接地址https://ke.qq.com/course/484107?tuin=ba64518
介绍主要的k8s资源的使用配置和命令。包括configmap,pod,service,replicaset,namespace,deployment,daemonset,ingress,pv,pvc,sc,role,rolebinding,clusterrole,clusterrolebinding,secret,serviceaccount,statefulset,job,cronjob,podDisruptionbudget,podSecurityPolicy,networkPolicy,resourceQuota,limitrange,endpoint,event,conponentstatus,node,apiservice,controllerRevision等。
第三个视频发布:https://edu.csdn.net/course/detail/27574
详细介绍helm命令,学习helm chart语法,编写helm chart。深入分析各项目源码,学习编写helm插件
————————————————
第一步:找到pv
[root@node1 ~]# kubectl get pv | grep alpaca
pvc-05ad53e8-63f4-11e8-b789-002197403677 22G RWO Retain Bound dev-mysql/mysql-data-alpaca-pxc-0 glusterfs-storage-dv 23d
pvc-11fc0ba7-63f6-11e8-b789-002197403677 22G RWO Retain Bound dev-mysql/mysql-data-alpaca-pxc-2 glusterfs-storage-dv 22d
pvc-16531610-63f5-11e8-b789-002197403677 22G RWO Retain Bound dev-mysql/mysql-data-alpaca-pxc-1 glusterfs-storage-dv 23d
pvc-a1b05f3f-7459-11e8-affc-002197403677 2G RWX Retain Bound default/pvc-alpaca-withlog glusterfs-storage-dv 2d
pvc-d67790bb-64bc-11e8-b789-002197403677 33G RWX Retain Bound dev-mysql/pvc-alpaca glusterfs-storage-dv 22d
第二步,describe pv
[root@node1 ~]# kubectl describe pv pvc-d67790bb-64bc-11e8-b789-002197403677
Name: pvc-d67790bb-64bc-11e8-b789-002197403677
Labels: <none>
Annotations: Description=Gluster-Internal: Dynamically provisioned PV
gluster.org/type=file
kubernetes.io/createdby=heketi-dynamic-provisioner
pv.beta.kubernetes.io/gid=2019
pv.kubernetes.io/bound-by-controller=yes
pv.kubernetes.io/provisioned-by=kubernetes.io/glusterfs
volume.beta.kubernetes.io/mount-options=auto_unmount
StorageClass: glusterfs-storage-dv
Status: Bound
Claim: dev-mysql/pvc-alpaca
Reclaim Policy: Retain
Access Modes: RWX
Capacity: 33G
Message:
Source:
Type: Glusterfs (a Glusterfs mount on the host that shares a pod's lifetime)
EndpointsName: glusterfs-dynamic-pvc-alpaca
Path: vol_0be16e06735b4099d90fe5c9fdc4fb00
ReadOnly: false
Events: <none>
取出Path:
vol_0be16e06735b4099d90fe5c9fdc4fb00
第三步:进入heketi容器
kubectl exec -it heketi-6d8cc557ff-8tw9q -n kube-system /bin/sh
第四步在heketi容器里执行命令:
heketi-cli volume expand --volume=0be16e06735b4099d90fe5c9fdc4fb00 --expand-size=10
其中:--volume为上面取出的path去掉vol_前缀