text
stringlengths
0
59.1k
* Step-by-step deployment instructions
* Verification and cleanup commands
* Key Kubernetes concepts used
## Contributing to Kubernetes Examples
We welcome contributions from the community! If you have an example that showcases
how to run applications or workloads on Kubernetes effectively and educates users,
please consider sharing it.
Before contributing, please thoroughly review our:
1. [Example Guidelines](guidelines.md): These outline the standards, structure,
and best practices all examples must follow.
2. [CONTRIBUTING.md](CONTRIBUTING.md): This provides instructions on the contribution
process, including how to propose, submit, and review examples.
Your contributions help make Kubernetes more accessible and understandable for everyone.
## Our Philosophy
We aim for these examples to be:
* **Educational:** Clearly explaining how and why things work.
* **Practical:** Demonstrating real-world (though possibly simplified) applications and platforms.
* **Current:** Reflecting modern Kubernetes features and best practices.
* **Maintained:** Kept up-to-date by the community and SIG Apps.
<|endoftext|>
# source: k8s_examples/CONTRIBUTING.md type: docs
# Contributing
Thanks for taking the time to join our community and start contributing!
The [Contributor Guide](https://github.com/kubernetes/community/blob/master/contributors/guide/README.md)
provides detailed instructions on how to get your ideas and bug fixes seen and accepted.
Please remember to sign the [CNCF CLA](https://github.com/kubernetes/community/blob/master/CLA.md) and
read and observe the [Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
<|endoftext|>
# source: k8s_examples/databases/cassandra/cassandra-service.yaml type: yaml
apiVersion: v1
kind: Service
metadata:
labels:
app: cassandra
name: cassandra
spec:
clusterIP: None
ports:
- port: 9042
selector:
app: cassandra
<|endoftext|>
# source: k8s_examples/databases/cassandra/README.md type: docs
# Example: Cassandra with StatefulSets on Kubernetes
This directory contains the source code and Kubernetes manifests for Cassandra
deployment with StatefulSets tutorial.
Follow this tutorial at https://kubernetes.io/docs/tutorials/stateful-application/cassandra/.
<|endoftext|>
# source: k8s_examples/databases/cassandra/cassandra-statefulset.yaml type: yaml
apiVersion: "apps/v1" # for k8s versions before 1.9.0 use apps/v1beta2 and before 1.8.0 use extensions/v1beta1
kind: StatefulSet
metadata:
name: cassandra
labels:
app: cassandra
spec:
serviceName: cassandra
replicas: 3
selector:
matchLabels:
app: cassandra
template:
metadata:
labels:
app: cassandra
spec:
terminationGracePeriodSeconds: 1800
containers:
- name: cassandra
image: gcr.io/google-samples/cassandra:v14
imagePullPolicy: Always
ports:
- containerPort: 7000
name: intra-node
- containerPort: 7001
name: tls-intra-node
- containerPort: 7199
name: jmx
- containerPort: 9042
name: cql
resources:
limits:
cpu: "500m"
memory: 1Gi