摘要: mysql docker run -itd --name=mysql --restart=always -p3306:3306 -v /data/mysql/conf/:/etc/mysql/ -v /data/mysql/data:/var/lib/mysql -v /data/mysql/log 阅读全文
posted @ 2022-12-12 18:08 DongGe丶 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 基于 Alpine 镜像 FROM alpine:latest ENV TZ=Asia/Shanghai RUN apk update && apk add tzdata && echo "${TZ}" > /etc/timezone && ln -sf /usr/share/zoneinfo/${ 阅读全文
posted @ 2022-11-15 18:18 DongGe丶 阅读(576) 评论(0) 推荐(0) 编辑
摘要: helm部署redis-culster集群 安装helm wget https://repo.huaweicloud.com/helm/v3.8.0/helm-v3.8.0-linux-amd64.tar.gz tar -zxf helm-v3.8.0-linux-amd64.tar.gz mv l 阅读全文
posted @ 2022-09-22 16:50 DongGe丶 阅读(1904) 评论(0) 推荐(0) 编辑
摘要: go # !/bin/bash wget https://golang.google.cn/dl/go1.17.11.linux-amd64.tar.gz && tar -zxf go1.17.11.linux-amd64.tar.gz -C /usr/local echo #go >> /etc/ 阅读全文
posted @ 2022-09-19 17:06 DongGe丶 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 当执行 namespaces 删除,迟迟未能完成手动终止,namespaces 一直处于Terminating状态。 [root@master setup]# kubectl get ns NAME STATUS AGE default Active 4d5h ingress-nginx Activ 阅读全文
posted @ 2022-09-06 21:51 DongGe丶 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 环境 centos 7.9 k8s 1.24 containerd 1.6.4 一、下载 mkdir harbor && wget https://hub.fastgit.xyz/goharbor/harbor-helm/archive/refs/tags/v1.9.0.tar.gz tar -zx 阅读全文
posted @ 2022-05-10 19:18 DongGe丶 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 环境 centos 7.9 k8s 1.24 containerd 1.6.4 github:https://github.com/sameersbn/docker-gitlab 一、安装postgresql vim gitlab-postgresql.yaml apiVersion: apps/v 阅读全文
posted @ 2022-05-10 15:42 DongGe丶 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 环境 centos 7.9 k8s 1.22.5 docker 20.10.12 ingress 官方网站ingress 仓库地址 阿里云文档 ingress-nginx v1.0 最新版本 v1.0适用于 Kubernetes 版本 v1.19+ (包括 v1.19 )Kubernetes-v1. 阅读全文
posted @ 2022-05-09 23:27 DongGe丶 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 环境 centos 7.9 k8s 1.24 containerd 1.6.4 一、配置NFS服务器 1、每台机器都需要安装nfs-utils,否则pod挂载pvc的时候会报超级块损坏 yum install -y nfs-utils 2、创建nfs共享目录 mkdir -p /nfs/data 3 阅读全文
posted @ 2022-05-08 18:20 DongGe丶 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 部署规划 首先准备几台服务器,计划部署3台master,3台 利用keepalived和haproxy做高可用,为了节约服务器,我将keepalived和haproxy和master一起部署。 环境: centos 7.9 k8s 1.24 containerd 1.6.4 服务器规划如下: ip 阅读全文
posted @ 2022-05-08 16:07 DongGe丶 阅读(1975) 评论(0) 推荐(0) 编辑