一、上传到私有仓储
docker pull busybox:1.33.1
docker tag busybox:1.33.1 192.168.31.185/public/busybox:1.33.1
docker push 192.168.31.185/public/busybox:1.33.1
---
apiVersion: apps/v1
kind: Deploymentspec:containers:- env:- name: ASPNETCORE_ENVIRONMENTvalue: Production........initContainers:- command:- sh- '-c'- echo 2000 > /proc/sys/net/core/somaxconnimage: 'harbor.net.com/public/busybox:1.33.1'imagePullPolicy: Alwaysname: busyboxhostresources: {}securityContext:privileged: trueterminationMessagePath: /temp/termination-logterminationMessagePolicy: File........
效果: