创建PV
关于PV的创建参考 《K8S笔记之持久化存储》
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: docker-claim spec: accessModes: - ReadWriteOnce resources: requests: storage: 80Gi storageClassName: local-volume
搭建仓库
Docker 私有化仓库的搭建可参考官方文档, 并且将相关的配置转化为K8S所需要的yaml文件
--- apiVersion: v1 kind: ReplicationController metadata: name: registry namespace: default labels: k8s...