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
91535827
Commit
91535827
authored
May 11, 2015
by
Deyuan Deng
Committed by
Deyuan Deng
May 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix downward API
parent
e73fa8b8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
25 deletions
+20
-25
cassandra-controller.yaml
examples/cassandra/cassandra-controller.yaml
+14
-17
cassandra-service.yaml
examples/cassandra/cassandra-service.yaml
+4
-4
cassandra.yaml
examples/cassandra/cassandra.yaml
+1
-3
README.md
examples/downward-api/README.md
+1
-1
No files found.
examples/cassandra/cassandra-controller.yaml
View file @
91535827
apiVersion
:
v1beta3
apiVersion
:
v1beta3
kind
:
ReplicationController
kind
:
ReplicationController
metadata
:
metadata
:
labels
:
labels
:
name
:
cassandra
name
:
cassandra
name
:
cassandra
name
:
cassandra
spec
:
spec
:
replicas
:
1
replicas
:
1
selector
:
selector
:
name
:
cassandra
name
:
cassandra
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
name
:
cassandra
name
:
cassandra
spec
:
spec
:
containers
:
containers
:
-
command
:
-
command
:
-
/run.sh
-
/run.sh
resources
:
resources
:
limits
:
limits
:
cpu
:
1
cpu
:
1
env
:
env
:
-
name
:
MAX_HEAP_SIZE
-
name
:
MAX_HEAP_SIZE
key
:
MAX_HEAP_SIZE
value
:
512M
value
:
512M
-
name
:
HEAP_NEWSIZE
-
name
:
HEAP_NEWSIZE
key
:
HEAP_NEWSIZE
value
:
100M
value
:
100M
image
:
"
kubernetes/cassandra:v2"
image
:
"
kubernetes/cassandra:v2"
name
:
cassandra
name
:
cassandra
ports
:
ports
:
-
containerPort
:
9042
-
containerPort
:
9042
name
:
cql
name
:
cql
-
containerPort
:
9160
-
containerPort
:
9160
name
:
thrift
name
:
thrift
volumeMounts
:
volumeMounts
:
-
mountPath
:
/cassandra_data
-
mountPath
:
/cassandra_data
name
:
data
name
:
data
volumes
:
volumes
:
-
name
:
data
-
name
:
data
emptyDir
:
{}
emptyDir
:
{}
examples/cassandra/cassandra-service.yaml
View file @
91535827
apiVersion
:
v1beta3
apiVersion
:
v1beta3
kind
:
Service
kind
:
Service
metadata
:
metadata
:
labels
:
labels
:
name
:
cassandra
name
:
cassandra
name
:
cassandra
name
:
cassandra
spec
:
spec
:
ports
:
ports
:
-
port
:
9042
-
port
:
9042
targetPort
:
9042
targetPort
:
9042
selector
:
selector
:
name
:
cassandra
name
:
cassandra
examples/cassandra/cassandra.yaml
View file @
91535827
...
@@ -10,7 +10,7 @@ spec:
...
@@ -10,7 +10,7 @@ spec:
-
/run.sh
-
/run.sh
resources
:
resources
:
limits
:
limits
:
cpu
:
"
1"
cpu
:
"
1"
image
:
kubernetes/cassandra:v2
image
:
kubernetes/cassandra:v2
name
:
cassandra
name
:
cassandra
ports
:
ports
:
...
@@ -31,5 +31,3 @@ spec:
...
@@ -31,5 +31,3 @@ spec:
volumes
:
volumes
:
-
name
:
data
-
name
:
data
emptyDir
:
{}
emptyDir
:
{}
examples/downward-api/README.md
View file @
91535827
...
@@ -14,7 +14,7 @@ started](../../docs/getting-started-guides) for installation instructions for yo
...
@@ -14,7 +14,7 @@ started](../../docs/getting-started-guides) for installation instructions for yo
Containers consume the downward API using environment variables. The downward API allows
Containers consume the downward API using environment variables. The downward API allows
containers to be injected with the name and namespace of the pod the container is in.
containers to be injected with the name and namespace of the pod the container is in.
Use the
`examples/
secrets/secret
-pod.yaml`
file to create a Pod with a container that consumes the
Use the
`examples/
downward-api/dapi
-pod.yaml`
file to create a Pod with a container that consumes the
downward API.
downward API.
```
shell
```
shell
...
...
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