Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
10dab799
Commit
10dab799
authored
Jan 08, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the cassandra example to use a data volume, and a fixed version.
parent
7ff43be7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
cassandra-controller.yaml
examples/cassandra/cassandra-controller.yaml
+8
-1
cassandra.yaml
examples/cassandra/cassandra.yaml
+2
-2
Dockerfile
examples/cassandra/image/Dockerfile
+1
-0
cassandra.yaml
examples/cassandra/image/cassandra.yaml
+2
-2
No files found.
examples/cassandra/cassandra-controller.yaml
View file @
10dab799
...
...
@@ -12,7 +12,7 @@ desiredState:
id
:
cassandra
containers
:
-
name
:
cassandra
image
:
kubernetes/cassandra
image
:
kubernetes/cassandra
:v1
command
:
-
/run.sh
cpu
:
1000
...
...
@@ -21,10 +21,17 @@ desiredState:
containerPort
:
9042
-
name
:
thrift
containerPort
:
9160
volumeMounts
:
-
name
:
data
mountPath
:
/cassandra_data
env
:
-
key
:
MAX_HEAP_SIZE
value
:
512M
-
key
:
HEAP_NEWSIZE
value
:
100M
volumes
:
-
name
:
data
source
:
emptyDir
:
{}
labels
:
name
:
cassandra
examples/cassandra/cassandra.yaml
View file @
10dab799
...
...
@@ -7,7 +7,7 @@ desiredState:
id
:
cassandra
containers
:
-
name
:
cassandra
image
:
kubernetes/cassandra
image
:
kubernetes/cassandra
:v1
command
:
-
/run.sh
cpu
:
1000
...
...
@@ -29,7 +29,7 @@ desiredState:
volumes
:
-
name
:
data
source
:
emptyDir
:
"
"
emptyDir
:
{}
labels
:
name
:
cassandra
...
...
examples/cassandra/image/Dockerfile
View file @
10dab799
...
...
@@ -17,5 +17,6 @@ RUN apt-get -qq -y install cassandra
COPY
cassandra.yaml /etc/cassandra/cassandra.yaml
COPY
run.sh /run.sh
COPY
kubernetes-cassandra.jar /kubernetes-cassandra.jar
RUN
chmod
a+x /run.sh
CMD
/run.sh
examples/cassandra/image/cassandra.yaml
View file @
10dab799
...
...
@@ -96,12 +96,12 @@ partitioner: org.apache.cassandra.dht.Murmur3Partitioner
# the configured compaction strategy.
# If not set, the default directory is $CASSANDRA_HOME/data/data.
data_file_directories
:
-
/
var/lib/cassandr
a/data
-
/
cassandra_dat
a/data
# commit log. when running on magnetic HDD, this should be a
# separate spindle than the data directories.
# If not set, the default directory is $CASSANDRA_HOME/data/commitlog.
commitlog_directory
:
/
var/lib/cassandr
a/commitlog
commitlog_directory
:
/
cassandra_dat
a/commitlog
# policy for data disk failures:
# die: shut down gossip and Thrift and kill the JVM for any fs errors or
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment