Push images to a private registry
Push the required Docker images to a private container registry.
If your Kubernetes workers have access to pull from a private registry, you can retag and push the required images directly to your private registry.
- Authenticate to your private registry.
- Tag the image with your registry path.
- Push the tagged image to your registry.
Amazon Elastic Container Registry
The following example tags and pushes the Splunk Operator image to an Amazon ECR registry. Replace 111000 with your account number and us-west-2 with your region.
$(aws ecr get-login --no-include-email --region us-west-2)
docker tag splunk/splunk-operator:latest 111000.dkr.ecr.us-west-2.amazonaws.com/splunk/splunk-operator:latest
docker push 111000.dkr.ecr.us-west-2.amazonaws.com/splunk/splunk-operator:latest
Google Kubernetes Engine
The following example tags and pushes the Splunk Operator image to a GKE registry. Replace splunk-operator-testing with the name of your GKE cluster.
gcloud auth configure-docker
docker tag splunk/splunk-operator:latest gcr.io/splunk-operator-testing/splunk-operator:latest
docker push gcr.io/splunk-operator-testing/splunk-operator:latest