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
b3f11b2d
Commit
b3f11b2d
authored
Jun 12, 2015
by
Abhi Shah
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9507 from caesarxuchao/cassandra-example-v1
update examples/cassandra to v1
parents
3c9c2ec1
d3241f46
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
cassandra-controller.yaml
examples/cassandra/cassandra-controller.yaml
+2
-2
cassandra-service.yaml
examples/cassandra/cassandra-service.yaml
+1
-2
cassandra.yaml
examples/cassandra/cassandra.yaml
+2
-2
kubernetes-cassandra.jar
examples/cassandra/image/kubernetes-cassandra.jar
+0
-0
KubernetesSeedProvider.java
...dra/java/src/io/k8s/cassandra/KubernetesSeedProvider.java
+1
-1
No files found.
examples/cassandra/cassandra-controller.yaml
View file @
b3f11b2d
apiVersion
:
v1
beta3
apiVersion
:
v1
kind
:
ReplicationController
metadata
:
labels
:
...
...
@@ -24,7 +24,7 @@ spec:
value
:
512M
-
name
:
HEAP_NEWSIZE
value
:
100M
image
:
gcr.io/google_containers/cassandra:v
3
image
:
gcr.io/google_containers/cassandra:v
4
name
:
cassandra
ports
:
-
containerPort
:
9042
...
...
examples/cassandra/cassandra-service.yaml
View file @
b3f11b2d
apiVersion
:
v1
beta3
apiVersion
:
v1
kind
:
Service
metadata
:
labels
:
...
...
@@ -7,6 +7,5 @@ metadata:
spec
:
ports
:
-
port
:
9042
targetPort
:
9042
selector
:
name
:
cassandra
examples/cassandra/cassandra.yaml
View file @
b3f11b2d
apiVersion
:
v1
beta3
apiVersion
:
v1
kind
:
Pod
metadata
:
labels
:
...
...
@@ -11,7 +11,7 @@ spec:
resources
:
limits
:
cpu
:
"
1"
image
:
gcr.io/google_containers/cassandra:v
3
image
:
gcr.io/google_containers/cassandra:v
4
name
:
cassandra
ports
:
-
name
:
cql
...
...
examples/cassandra/image/kubernetes-cassandra.jar
View file @
b3f11b2d
No preview for this file type
examples/cassandra/java/src/io/k8s/cassandra/KubernetesSeedProvider.java
View file @
b3f11b2d
...
...
@@ -102,7 +102,7 @@ public class KubernetesSeedProvider implements SeedProvider {
List
<
InetAddress
>
list
=
new
ArrayList
<
InetAddress
>();
String
host
=
"https://kubernetes.default.cluster.local"
;
String
serviceName
=
getEnvOrDefault
(
"CASSANDRA_SERVICE"
,
"cassandra"
);
String
path
=
"/api/v1
beta3
/namespaces/default/endpoints/"
;
String
path
=
"/api/v1/namespaces/default/endpoints/"
;
try
{
String
token
=
getServiceAccountToken
();
...
...
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