docker
y_zilong
书读百遍 其义自见
展开
-
K8s的PV/PVC
1、Volume #kubernentes的存储部分第一个介绍了Volume。Volume可以支持local、nfs、cephfs、glusterfs以及各种云计算平台。 #官网Volume的配置都是在一个创建pod的yaml文件中,例如 apiVersion: v1 kind: Pod metadata: name: test-pd spec: containers: - image: k8s.gcr.io/test-webserver name: test-container原创 2022-01-14 11:10:19 · 921 阅读 · 0 评论 -
kubeadm 搭建k8s测试环境
由于工作中需要单台服务器或者双台服务器搭建开发k8s测试环境,如下是具体的搭建过程 #关闭防火墙 systemctl stop firewalld && systemctl disable firewalld #关闭selinux sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config && setenforce 0 #关闭sawp 分区 swapoff -a sed -i '/ swap / s/^原创 2022-01-12 10:39:01 · 557 阅读 · 0 评论 -
Docker分层打镜像
1自定义Centos基础镜像 [root@cent7-yzil ~]# docker pull centos:7.9.2009 [root@cent7-yzil ~]# mkdir /opt/dockerfile/{web/{nginx,tomcat,jdk,apache},system/{centos,ubuntu,redhat}} -pv [root@cent7-yzil ~]# cd /opt/dockerfile/system/centos/ [root@cent7-yzil centos]原创 2021-08-21 21:34:45 · 214 阅读 · 0 评论 -
docker的安装
1、docker ubuntu安装 #如果你过去安装过docker,先删除 yzil@ubuntu01:~$ sudo apt-get remove docker docker-engine docker.io #首次安装依赖 yzil@ubuntu01:~$ sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common #信任docker的GPG公钥 yzil@ubun原创 2021-07-10 21:50:25 · 128 阅读 · 0 评论