![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
k8s 安装
文章平均质量分 53
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 · 438 阅读 · 0 评论 -
kubernetes 1.18.17 windows server 2019 节点 cluster ip 服务不通
kube-proxy 日志...E0409 13:34:34.816950 3560 proxier.go:998] "Source Vip endpoint creation failed" err="hcnCreateEndpoint failed in Win32: An address provided is invalid or reserved. (0x803b002f) {\"Success\":false,\"Error\":\"An address provided is inv原创 2021-09-01 10:36:29 · 545 阅读 · 1 评论 -
ubuntu 18.04 安装 smbma 服务
服务端安装服务 apt install -y samba samba-common创建共享目录mkdir -p /opt/smbsharesudo chmod 777 /opt/smbshare增加用户这个用户应当首先存在于系统中,否则会失败。或者用groupadd 和 useradd 添加系统用户,可不给shell权限,增加安全性。sudo smbpasswd -a mm编辑配置文件vim /etc/samba/smb.conf增加如下片段[share] commen原创 2021-07-08 16:29:45 · 410 阅读 · 0 评论 -
k8s 1.18.17 预留资源
配置kubelet 参数vim /var/lib/kubelet/config.yaml ,添加 kubeReserved 和 systemReserved 部分。注意:这里仅仅减少了节点 Allocatable 资源,要确保 kubelet 资源,还需要配置 group。apiVersion: kubelet.config.k8s.io/v1beta1authentication: anonymous: enabled: false webhook: cacheTTL: 0原创 2021-06-08 10:02:33 · 167 阅读 · 0 评论 -
部署 harbor v2.2.2
下载harbor离线包地址 https://github.com/goharbor/harbor/releases,这里选择 harbor-offline-installer-v2.2.2.tgz 。mkdir -p /opt/harborcd /opt/harborwget https://github.com/goharbor/harbor/releases/download/v2.2.2/harbor-offline-installer-v2.2.2.tgz安装解压tar -xzf原创 2021-05-31 12:06:42 · 566 阅读 · 0 评论 -
安装influxdb 2.0.5
deploymentapiVersion: apps/v1kind: Deploymentmetadata: name: influxdb-dp namespace: influxdb labels:spec: replicas: 1 selector: matchLabels: app: influxdb template: metadata: labels: app: influxdb spec:原创 2021-05-18 16:06:13 · 239 阅读 · 0 评论 -
kubernetes 1.18.20 加入windows server 2019节点
准备windows server 2019主机安装windows server 2019 虚拟机。如果使用 VXLAN/覆盖(Overlay)联网设施,必须安装 KB4489899。如果未安装,需更新操作系统,见官方文档。windows server 2019安装docker微软官方文档windows server安装docker控制节点操作在全部控制节点执行sudo sysctl net.bridge.bridge-nf-call-iptables=1下载 Linux 版本的 Flanne原创 2021-04-26 17:10:10 · 632 阅读 · 0 评论 -
kubeadm1.18.20 join 节点卡死
现象kubeadm1.18.17 join 节点卡死,很长时间后出现:could not find a JWS signature in the cluster-info ConfigMaperror execution phase preflight: couldn't validate the identity of the API Server: could not find a JWS signature in the cluster-info ConfigMap for token ID "9原创 2021-04-27 14:46:32 · 1903 阅读 · 0 评论 -
k8s1.18.17 安装metric-server:v0.4.4
简介metric-server 从kubelet收集监控指标,用于水平扩容(HPA)和垂直扩容(VPA) ,不适合作为完整的监控解决方案,完整的监控解决方案应当使用 Prometheus。metric-server支持5,000 节点的集群每个监控节点消耗 1m core of CPU and 3 MB of memory。部署kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/原创 2021-04-09 17:24:30 · 566 阅读 · 0 评论 -
kubernetes 1.18.17 安装 dashboard v2.0.0
安装dashboard# Copyright 2017 The Kubernetes Authors.## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.转载 2021-03-31 18:00:57 · 130 阅读 · 0 评论 -
kubernetes master 不能访问NodePort
解决办法设置net.ipv4.ip_forward=1参数:#!/bin/shcat > /etc/sysctl.d/99-ipv4_forward.conf <<EOFnet.ipv4.ip_forward=1EOFsysctl --load=/etc/sysctl.d/99-ipv4_forward.conf转载 2021-03-31 17:48:56 · 1784 阅读 · 0 评论 -
kubeadm 在virtualbox ubuntu18.04上安装kubernetes 1.18.20
备份源cp /etc/apt/source.list /etc/apt/source.list.back改为阿里源sudo cat << EOF >/etc/apt/sources.listdeb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted un原创 2021-03-31 15:34:55 · 658 阅读 · 1 评论