k8s
mumu2lili
java, docker, kubernetes, PaaS
展开
-
kubeadm 在vubuntu22.04.4 server 上安装kubernetes 1.28.9
官方文档:https://v1-28.docs.kubernetes.io/zh-cn/docs/setup/production-environment/container-runtimes/官方文档:https://github.com/flannel-io/flannel/blob/v0.25.0/Documentation/kube-flannel.yml。如果有多个网卡,需添加参数 --iface=xxx, 指定网卡。默认使用的是 registry.k8s.io。原创 2024-05-14 00:08:13 · 465 阅读 · 0 评论 -
node 保留资源
/var/lib/kubelet/config.yamlapiVersion: kubelet.config.k8s.io/v1beta1authentication: anonymous: enabled: false webhook: cacheTTL: 0s enabled: true x509: clientCAFile: /etc/kubernetes/pki/ca.crtauthorization: mode: Webhook webho原创 2022-02-19 16:35:05 · 526 阅读 · 1 评论 -
k8s 1.18.20 kubevirt v0.47.1 创建 windows10 虚拟机
嵌套虚拟化虚拟机管理软件:exsi 6.7,k8s node节点: ubuntu 18.04.5 desktop, k8s 1.18.20。Dockerfile进入 windows7下载目录(此目录应当只有一个iso)构建镜像cd /media/sf_backup/dev/os/windows10-20h2cat <<EOF | sudo tee DockerfileFROM scratchADD --chown=107:107 cn_windows_10_business_原创 2021-12-16 14:02:32 · 3330 阅读 · 1 评论 -
kubernetes 1.18.20部署 kubevirt cdi v1.29.0
kubevirt-operator-v0.47.1.ymlapiVersion: v1kind: Namespacemetadata: labels: cdi.kubevirt.io: "" name: cdi---apiVersion: apiextensions.k8s.io/v1kind: CustomResourceDefinitionmetadata: labels: operator.cdi.kubevirt.io: "" name: cdis.cd原创 2021-11-26 18:22:41 · 904 阅读 · 0 评论 -
k8s 操作
copy windows pod 文件到宿主机把 kube-proxy-windows-cmd4p pod 中 c:/utils/wins.exe copy到宿主机kubectl cp kube-system/kube-proxy-windows-cmd4p:utils/wins.exe /home/hnidc/tmp/wins.exe原创 2021-10-09 17:22:56 · 271 阅读 · 0 评论 -
k8s 1.18.17 使用外部服务
serviceapiVersion: v1kind: Servicemetadata: name: xfuzz-servicespec: ports: - protocol: TCP port: 80 targetPort: 9960 clusterIP: 10.111.11.249--- apiVersion: v1kind: Endpointsmetadata: name: xfuzz-servicesubsets: - ad原创 2021-06-21 23:10:20 · 150 阅读 · 0 评论 -
访问harbor v2.2.2 api
健康检查curl -u "admin:Harbor12345" -X GET -H "Content-Type: application/json" "http://192.168.56.104/api/v2.0/health"搜索镜像curl -u "admin:Harbor12345" -X GET -H "Content-Type: application/json" "http://192.168.56.104/api/v2.0/search?q=hi"...原创 2021-06-15 11:42:52 · 819 阅读 · 0 评论 -
访问k8s api
curl 访问curl https://192.168.56.102:6443/api/v1/nodes --cacert /etc/kubernetes/pki/ca.crt --cert /etc/kubernetes/pki/apiserver-kubelet-client.crt --key /etc/kubernetes/pki/apiserver-kubelet-client.key原创 2021-05-18 11:57:49 · 313 阅读 · 0 评论