text stringlengths 0 59.1k |
|---|
This Cassandra Provider implements `SeedProvider`. and utilizes `SimpleSnitch`. This limits a Cassandra Ring to a single Cassandra Datacenter and ignores Rack setup. Datastax provides more documentation on the use of [_SNITCHES_](https://docs.datastax.com/en/cassandra/3.x/cassandra/architecture/archSnitchesAbout.html... |
expand this capability. |
This in affect makes every node a seed provider, which is not a recommended best practice. This increases maintenance and reduces gossip performance. |
<|endoftext|> |
# source: k8s_examples/databases/mysql-cinder-pd/mysql.yaml type: yaml |
apiVersion: v1 |
kind: Pod |
metadata: |
name: mysql |
labels: |
name: mysql |
spec: |
containers: |
- resources: |
limits : |
cpu: 0.5 |
image: mysql |
name: mysql |
args: |
- "--ignore-db-dir" |
- "lost+found" |
env: |
- name: MYSQL_ROOT_PASSWORD |
# change this |
value: yourpassword |
ports: |
- containerPort: 3306 |
name: mysql |
volumeMounts: |
# name must match the volume name below |
- name: mysql-persistent-storage |
# mount path within the container |
mountPath: /var/lib/mysql |
volumes: |
- name: mysql-persistent-storage |
cinder: |
volumeID: bd82f7e2-wece-4c01-a505-4acf60b07f4a |
fsType: ext4 |
<|endoftext|> |
# source: k8s_examples/databases/mysql-cinder-pd/mysql-service.yaml type: yaml |
apiVersion: v1 |
kind: Service |
metadata: |
labels: |
name: mysql |
name: mysql |
spec: |
ports: |
# the port that this service should serve on |
- port: 3306 |
# label keys and values that must match in order to receive traffic for this service |
selector: |
name: mysql |
<|endoftext|> |
# source: k8s_examples/databases/mysql-cinder-pd/README.md type: docs |
# MySQL installation with cinder volume plugin |
Cinder is a Block Storage service for OpenStack. This example shows how it can be used as an attachment mounted to a pod in Kubernetes. |
### Prerequisites |
Start kubelet with cloud provider as openstack with a valid cloud config |
Sample cloud_config: |
``` |
[Global] |
auth-url=https://os-identity.vip.foo.bar.com:5443/v2.0 |
username=user |
password=pass |
region=region1 |
tenant-id=0c331a1df18571594d49fe68asa4e |
``` |
Currently the cinder volume plugin is designed to work only on linux hosts and offers ext4 and ext3 as supported fs types |
Make sure that kubelet host machine has the following executables |
``` |
/bin/lsblk -- To Find out the fstype of the volume |
/sbin/mkfs.ext3 and /sbin/mkfs.ext4 -- To format the volume if required |
/usr/bin/udevadm -- To probe the volume attached so that a symlink is created under /dev/disk/by-id/ with a virtio- prefix |
``` |
Ensure cinder is installed and configured properly in the region in which kubelet is spun up |
### Example |
Create a cinder volume Ex: |
`cinder create --display-name=test-repo 2` |
Use the id of the cinder volume created to create a pod [definition](mysql.yaml) |
Create a new pod with the definition |
`cluster/kubectl.sh create -f examples/mysql-cinder-pd/mysql.yaml` |
This should now |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.