Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize configuration of Image reference and ImagePullSecret #48

Open
julienlau opened this issue Nov 29, 2022 · 1 comment
Open

Customize configuration of Image reference and ImagePullSecret #48

julienlau opened this issue Nov 29, 2022 · 1 comment

Comments

@julienlau
Copy link

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

@julienlau
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant