Specify Image for Cluster
jselleck opened this issue · 1 comments
jselleck commented
Is it possible to set the image on a NATS cluster to accommodate locations that may not have direct docker.io access. Not being able to is preventing me from using the operator on several of our networks. Thanks!
For example - something like:
apiVersion: nats.io/v1alpha2
kind: NatsCluster
metadata:
name: dso-nats-cluster
spec:
size: 3
version: "2.1.4"
image: myreg.custom.com:5555/nats:2.1.4
jselleck commented
I found the solution:
kind: NatsCluster
metadata:
name: dso-nats-cluster
spec:
size: 3
version: "2.1.4"
serverImage: myreg.custom.com:5555/nats
Note: the tag on the serverImage is missing. The operator will append the version as the tag. The resulting spec.image is: myreg.custom.com:5555/nats:2.1.4 IMO this is strange but it works. It needs some documentation.