Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

liveness - Make separate liveness/readiness probes possible. #278

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DOCKER_REPO_BASE_TEST ?= orangeopensource
IMAGE_NAME := $(SERVICE_NAME)
BUILD_IMAGE ?= orangeopensource/casskop-build

BOOTSTRAP_IMAGE ?= orangeopensource/cassandra-bootstrap:0.1.4
BOOTSTRAP_IMAGE ?= orangeopensource/cassandra-bootstrap:0.1.7
TELEPRESENCE_REGISTRY ?= datawire
KUBESQUASH_REGISTRY:=

Expand Down
2 changes: 1 addition & 1 deletion docker/bootstrap/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
PROJECT:=$(CI_REGISTRY_IMAGE)
endif

VERSION:=0.1.6
VERSION:=0.1.7
TAG?=${VERSION}
ifeq ($(CIRCLE_BRANCH),master)
BRANCH:=latest
Expand Down
3 changes: 3 additions & 0 deletions docker/bootstrap/dgoss/checks/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ file:
/etc/cassandra/pre_run.sh:
exists: false

/etc/cassandra/liveness-probe.sh:
exists: true

/etc/cassandra/readiness-probe.sh:
exists: true

Expand Down
3 changes: 3 additions & 0 deletions docker/bootstrap/dgoss/test-without-volumes/goss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ file:
/etc/cassandra/pre_run.sh:
exists: false

/etc/cassandra/liveness-probe.sh:
exists: true

/etc/cassandra/readiness-probe.sh:
exists: true

Expand Down
1 change: 1 addition & 0 deletions docker/bootstrap/files/liveness-probe.sh
2 changes: 1 addition & 1 deletion pkg/apis/db/v1alpha1/cassandracluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const (
DefaultReadinessHealthCheckPeriod int32 = 10

defaultCassandraImage = "cassandra:3.11"
defaultBootstrapImage = "orangeopensource/cassandra-bootstrap:0.1.6"
defaultBootstrapImage = "orangeopensource/cassandra-bootstrap:0.1.7"
defaultServiceAccountName = "cassandra-cluster-node"
InitContainerCmd = "cp -vr /etc/cassandra/* /bootstrap"
defaultMaxPodUnavailable = 1
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/cassandracluster/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ func createCassandraContainer(cc *api.CassandraCluster, status *api.CassandraClu
Command: []string{
"/bin/bash",
"-c",
"/etc/cassandra/readiness-probe.sh",
"/etc/cassandra/liveness-probe.sh",
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ spec:
command:
- /bin/bash
- -c
- /etc/cassandra/readiness-probe.sh
- /etc/cassandra/liveness-probe.sh
failureThreshold: 3
initialDelaySeconds: 120
periodSeconds: 10
Expand Down