pod控制器
未读
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
1.kubernetes调度基础1.1replication controller和replicaset(了解即可)Replication Controller(复制控制器,RC)和 ReplicaSet(复制集,RS)是两种简单部署 Pod的方式。因为在生产环境中,主要使用更高级的 Deployment 等方式进行 Pod 的管理和部署,所以只需要简单了解即可。
1.1.1Replication ControllerReplication Controller(简称 RC)可确保 P ...
.video-container {
position: relative;
width: 100%;
padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 * 100%) */
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
1.创建pod使用 kubectl run 命令创建一个pod:
12345678# 基本命令格式kubectl run <pod-name> --image=<image-name> [options]# 示例:kubectl run nginx-pod --image=registry.cn-beijing.aliyuncs.com/k8s-liujunwei/nginx:1.24.0# nginx-pod 是创建pod的名字,所在命名空间唯一# --ima ...


