Skip to content

Instantly share code, notes, and snippets.

@tbaums
Last active December 18, 2020 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbaums/77abaefa2b01548405378ac54555b853 to your computer and use it in GitHub Desktop.
Save tbaums/77abaefa2b01548405378ac54555b853 to your computer and use it in GitHub Desktop.
Cassandra Migration Demo Setup
# This file is part of Rok.
#
# Copyright © 2020 Arrikto Inc. All Rights Reserved.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: rok-user-cluster-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: user
---
apiVersion: v1
kind: Service
metadata:
labels:
app: cassandra
name: cassandra
spec:
clusterIP: None
ports:
- port: 9042
selector:
app: cassandra
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cstar
namespace: default
labels:
app: cstar
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: cstar
template:
metadata:
creationTimestamp: null
labels:
app: cstar
spec:
containers:
- image: tbaums/cstar-client
name: cstar-client
args:
- sleep
- "50000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment