随笔:120 文章:0 评论:7 阅读: 35156

随笔分类 -  kubernetes

 
harbor
摘要:wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/ 阅读全文
posted @ 2023-04-30 05:41 lzjasd 阅读(62) 评论(0) 推荐(0) 编辑
kubernetes tekton
摘要:https://tekton.dev/docs/getting-started/ 官网 kubectl cluster-info Kubernetes control plane is running at https://192.168.14.132:6443 CoreDNS is running 阅读全文
posted @ 2023-04-23 04:26 lzjasd 阅读(15) 评论(0) 推荐(0) 编辑
使用nginx做反向代理解决jenkins插件下载的问题
摘要:yum -y install nginx cp /etc/nginx/nginx.conf{,.bak} vim /etc/nginx/nginx.conf server { listen 80; listen [::]:80; server_name updates.jenkins.io; roo 阅读全文
posted @ 2023-04-21 02:23 lzjasd 阅读(287) 评论(0) 推荐(0) 编辑
kubernetes jenkins
摘要:https://updates.jenkins.io/update-center.json https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json docker pull jenkins/jenkins:lts 阅读全文
posted @ 2023-04-20 03:39 lzjasd 阅读(14) 评论(0) 推荐(0) 编辑
helm部署gitea
摘要:helm部署gitea helm repo add gitea-charts https://dl.gitea.io/charts/ helm repo update helm repo list 创建secrets cat secret1.yaml apiVersion: v1 kind: Sec 阅读全文
posted @ 2023-04-19 20:54 lzjasd 阅读(68) 评论(0) 推荐(0) 编辑
kubernetes gitea
摘要:kubectl create deploy nginx --image nginx --dry-run -o yaml > gitea.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: gitea1 name: gite 阅读全文
posted @ 2023-04-19 00:44 lzjasd 阅读(63) 评论(0) 推荐(0) 编辑
基于cpu和内存进行pod扩容,创建hpa
摘要:基于cpu和内存进行pod扩容,创建hpa 创建镜像 mkdir php cd php touch dockerfile touch index.php vim dockerfile FROM php:5-apache ADD index.php /var/www/html/index.php RU 阅读全文
posted @ 2023-04-07 17:48 lzjasd 阅读(334) 评论(0) 推荐(0) 编辑
kubernetes metrics-server安装
摘要:k8s版本 [root@master v60]# kubectl versionWARNING: This version information is deprecated and will be replaced with the output from kubectl version --sh 阅读全文
posted @ 2023-04-07 03:28 lzjasd 阅读(539) 评论(0) 推荐(0) 编辑
安装ingress-nginx
摘要:基本环境 kubectl get nodes -o wideNAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIMEmaster Ready control-plan 阅读全文
posted @ 2023-03-28 20:50 lzjasd 阅读(182) 评论(0) 推荐(0) 编辑
k8s挂载storageclass
摘要:k8s挂载storageclass 概念定义 pv pvc storageclass PV 是群集中的资源。 PVC 是对这些资源的请求 pv 的供应方式 可以通过两种方式配置 PV:静态或动态。 绑定 用户创建 pvc 并指定需要的资源和访问模式。在找到可用 pv 之前,pvc 会保持未绑定状态 阅读全文
posted @ 2023-03-23 22:47 lzjasd 阅读(362) 评论(0) 推荐(0) 编辑
k8s cridocker
摘要:1 mkdir /data/rpm 2 mount -t nfs 192.168.14.134:/data/rpm /data/rpm -o nolock,nfsvers=3,vers=3 3 echo "mount -t nfs 192.168.14.134:/data/rpm /data/rpm 阅读全文
posted @ 2023-03-23 17:02 lzjasd 阅读(13) 评论(0) 推荐(0) 编辑
kubernetes部署dashboard
摘要:设置node1节点的标签 kubectl label node node1 node-role.kubernetes.io/worker=worker 官方文档 https://kubernetes.io/zh-cn/docs/tasks/access-application-cluster/web 阅读全文
posted @ 2023-03-16 17:17 lzjasd 阅读(13) 评论(0) 推荐(0) 编辑
kubernetes部署calico
摘要:kubectl get nodes NAME STATUS ROLES AGE VERSION master NotReady control-plane 10h v1.26.2 node1 NotReady <none> 10h v1.26.2 node2 Ready <none> 8h v1.2 阅读全文
posted @ 2023-03-16 17:16 lzjasd 阅读(1332) 评论(0) 推荐(0) 编辑
error execution phase kubelet-start: error uploading crisocket: Unauthorized
摘要:[kubelet-start] Starting the kubelet [kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap... [kubelet-check] Initial timeout of 40s pa 阅读全文
posted @ 2023-03-16 01:57 lzjasd 阅读(1086) 评论(0) 推荐(0) 编辑
安装go
摘要:安装go wget https://golang.google.cn/dl/go1.20.2.linux-amd64.tar.gztar -zxvf go1.20.2.linux-amd64.tar.gz -C /usr/local/sleep 10cat >>/etc/profile<<EOF#g 阅读全文
posted @ 2023-03-16 01:27 lzjasd 阅读(31) 评论(0) 推荐(0) 编辑
nfs
摘要:安装nfs yum -y install rpcbind nfs-utilsvim /etc/exports/root/data/rpm *(rw,no_root_squash,no_all_squash,sync)/data/rpm *(rw,no_root_squash,no_all_squas 阅读全文
posted @ 2023-03-16 01:25 lzjasd 阅读(14) 评论(0) 推荐(0) 编辑
kubernetes单master集群基于cri-dockerd
摘要:虚拟机 ip主机名角色内存 192.168.14.132 master master 4g 192.168.14.133 node1 worker 4g 192.168.14.134 node2 worker 4g master节点 软件源http://mirrors.aliyun.com/repo 阅读全文
posted @ 2023-03-16 00:15 lzjasd 阅读(136) 评论(0) 推荐(0) 编辑
cri-docker and kubernetes
摘要:在你的每个节点上,遵循安装 Docker Engine 指南为你的 Linux 发行版安装 Docker。按照源代码仓库中的说明安装 cri-dockerd。对于 cri-dockerd,默认情况下,CRI 套接字是 /run/cri-dockerd.sockhttps://docs.docker. 阅读全文
posted @ 2023-03-15 14:43 lzjasd 阅读(247) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示