Open julienlau opened 1 year ago
Regarding customization of image path I did it manually with
for f in `find . \( -name '*.json' -o -name '*.yml' -o -name '*.yaml' \)` ; do
sed -i "s|image: redis:alpine|image: docker.artifactory.local/library/redis:alpine|g" $f
sed -i "s|image: \"redis:alpine|image: \"docker.artifactory.local/library/redis:alpine|g" $f
sed -i "s|Image\": \"redis:alpine|Image\": \"docker.artifactory.local/library/redis:alpine|g" $f
sed -i "s|image: mysql:5.7|image: docker.artifactory.local/library/mysql:5.7|g" $f
sed -i "s|image: \"mysql:5.7|image: \"docker.artifactory.local/library/mysql:5.7|g" $f
sed -i "s|Image\": \"mysql:5.7|Image\": \"docker.artifactory.local/library/mysql:5.7|g" $f
sed -i "s|image: gcr.io/google-containers/nginx|image: docker.artifactory.local/nginx|g" $f
sed -i "s|image: \"gcr.io/google-containers/nginx|image: \"docker.artifactory.local/nginx|g" $f
sed -i "s|Image\": \"gcr.io/google-containers/nginx|Image\": \"docker.artifactory.local/nginx|g" $f
sed -i "s|image: nginx|image: docker.artifactory.local/nginx|g" $f
sed -i "s|image: \"nginx|image: \"docker.artifactory.local/nginx|g" $f
sed -i "s|Image\": \"nginx|Image\": \"docker.artifactory.local/nginx|g" $f
sed -i "s|image: k8s.gcr.io/pause:3.1|image: docker.artifactory.local/pause:3.1|g" $f
sed -i "s|image: \"k8s.gcr.io/pause:3.1|image: \"docker.artifactory.local/pause:3.1|g" $f
sed -i "s|Image\": \"k8s.gcr.io/pause:3.1|Image\": \"docker.artifactory.local/pause:3.1|g" $f
sed -i "s|image: gcr.io/google-samples/hello-app:2.0|image: docker.artifactory.local/k8sacademy/hello-app:2.0|g" $f
sed -i "s|image: \"gcr.io/google-samples/hello-app:2.0|image: \"docker.artifactory.local/k8sacademy/hello-app:2.0|g" $f
sed -i "s|Image\": \"gcr.io/google-samples/hello-app:2.0|Image\": \"docker.artifactory.local/k8sacademy/hello-app:2.0|g" $f
done
Hi,
In order to be able to run on air-gapped environment, it would be nice to be able to easyily replace image path in the config directory.
In addition, it would be necessary to support configuration of ImagePullSecret
Regards