logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

k8s创建 私有仓库 secret

kubectl create secret docker-registry k8s-test-registry --docker-server=xxx.aliyuncs.com --docker-username=xxx --docker-password=xxx -n k8s-test

#git
k8s 通过yaml文件创建service

cat k8s-test-server-svc.yamlapiVersion: v1kind: Servicemetadata: name: k8s-test-server-svc namespace: k8s-testspec: type: NodePort selector: erp: k8s-test app: auth-server ports:...

#json#java
k8s 通过 yaml 文件创建 deployment

cat k8s-test-deploy.yamlapiVersion: apps/v1kind: Deploymentmetadata: name: auth-server namespace: k8s-testspec: replicas: 1 selector: matchLabels: erp: k8s-test app: auth-s...

k8s通过yaml 文件创建保密字典

cat k8s-test-secret.yamlapiVersion: v1kind: Secretmetadata: name: k8s-test-secret namespace: k8s-testtype: OpaquestringData: redis_host: "127.0.0.1" redis_password: "123456" redis_port...

k8s 通过 yaml 文件创建 namespace

cat k8s-test-namespace.yamlapiVersion: v1kind: Namespacemetadata: name: k8s-test部署kubectl apply -f k8s-test-namespace.yaml

#python
到底了