Created
August 13, 2018 15:59
-
-
Save victorddiniz/277f36ffdab25a0cf731f2e2c2164df9 to your computer and use it in GitHub Desktop.
Cassandra-reaper kubernetes deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: cassandra-reaper | |
namespace: cassandra-reaper | |
spec: | |
template: | |
metadata: | |
labels: | |
app: cassandra-reaper | |
spec: | |
imagePullSecrets: | |
- name: registry | |
containers: | |
- name: cassandra-reaper | |
image: thelastpickle/cassandra-reaper:1.2.1 | |
imagePullPolicy: Always | |
env: | |
- name: REAPER_STORAGE_TYPE | |
value: cassandra | |
- name: REAPER_CASS_CLUSTER_NAME | |
value: "Data Products Cluster" | |
- name: REAPER_CASS_CONTACT_POINTS | |
value: "[ \"127.0.0.1\", \"127.0.0.2\", \"127.0.0.3\", \"127.0.0.4\" ]" | |
- name: REAPER_ENABLE_WEBUI_AUTH | |
value: "true" | |
- name: REAPER_WEBUI_USER | |
value: "some_user" | |
- name: REAPER_WEBUI_PASSWORD | |
valueFrom: | |
secretKeyRef: | |
name: reaper-webui-auth | |
key: password | |
readinessProbe: | |
tcpSocket: | |
port: 8080 | |
initialDelaySeconds: 30 | |
periodSeconds: 10 | |
timeoutSeconds: 2 | |
successThreshold: 1 | |
failureThreshold: 30 | |
resources: | |
requests: | |
cpu: 200m | |
memory: 400M | |
limits: | |
cpu: 300m | |
memory: 500M | |
ports: | |
- containerPort: 8081 | |
name: 'admin-ui' | |
- containerPort: 8080 | |
name: 'web-ui' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment