https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/ 只挑个人感觉使用较多/比较重要的点来说 namespace Create a namespace so that the resources you create in this exercise are isolated from the rest of your cluster. 和Linux的namespace是类似的,做一个隔离…
报错信息: Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. User "system:serviceaccount:mycomp-services-process:default" cannot get resource “pods” in API group "" in the namespace &q…
k8s提供多种volume接口,其中local 和host path是容易混淆的两个接口.下面这篇文章解释了两者的区别: https://groups.google.com/forum/#!topic/kubernetes-users/68Yvm8ZkztI 关键内容:Both use local disks available on a machine. But! Imagine you have a cluster of three machines and have a Deploymen…
在用longhorn工具做k8s存储卷动态预配的时候,需要修改longhorn.yaml的一个默认参数,修改完成需要重新加载longhorn.yaml,结果重新加载出错了,修改的参数没有生效,于是执行kubectl delete -f longhorn.yaml想将部署的资源全部删除重新启动:但是发现创建的namespace无法删除,状态一直是Terminating: [root@k8smaster longhorn]# kubectl get ns NAME STATUS AGE defaul…