Commit 1ef64eb6 authored by Alex Robinson's avatar Alex Robinson

Support custom domains in the cockroachdb example's init container

This switches from using v0.1 of the peer-finder image to a version that includes https://github.com/kubernetes/contrib/pull/2013 While I'm here, switch the version of cockroachdb from 1.0 to 1.0.1
parent 7043372d
...@@ -88,9 +88,12 @@ spec: ...@@ -88,9 +88,12 @@ spec:
# has to decide what command-line flags to use when starting CockroachDB. # has to decide what command-line flags to use when starting CockroachDB.
# This only matters when a pod's persistent volume is empty - if it has # This only matters when a pod's persistent volume is empty - if it has
# data from a previous execution, that data will always be used. # data from a previous execution, that data will always be used.
#
# If your Kubernetes cluster uses a custom DNS domain, you will have
# to add an additional arg to this pod: "-domain=<your-custom-domain>"
initContainers: initContainers:
- name: bootstrap - name: bootstrap
image: cockroachdb/cockroach-k8s-init:0.1 image: cockroachdb/cockroach-k8s-init:0.2
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args: args:
- "-on-start=/on-start.sh" - "-on-start=/on-start.sh"
...@@ -117,7 +120,7 @@ spec: ...@@ -117,7 +120,7 @@ spec:
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
containers: containers:
- name: cockroachdb - name: cockroachdb
image: cockroachdb/cockroach:v1.0 image: cockroachdb/cockroach:v1.0.1
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 26257 - containerPort: 26257
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment