To use your own custom docker image, you can set
image: AUTO in your service module.
name: hello environments: - name: staging path: "opta.yaml" modules: - name: hello type: k8s-service port: http: 80 image: AUTO healthcheck_path: "/" public_uri: "/hello"
For this example, we will make a simple change to our hello application (also available on github).
Build the image locally:
docker build . -t hello-opta:v2
Deploy the new image to the kubernetes cluster:
opta deploy --image hello-opta:v2
- Push the image to the private container registry (ECR, GCR, ACR) - this registry is created during environment creation.
- Update the kubernetes deployment to use the new container image.
- Create new pods to use the new container image - automatically done by kubernetes.
No need to manually manage the repositories!
Note: If you deploy an Image with an already existing tag image, Opta would still detect those changes and make sure the image is deployed again.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.