https://github.com/michaelcade/kanister-visualiser
https://github.com/michaelcade/kanister-visualiser
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/michaelcade/kanister-visualiser
- Owner: MichaelCade
- Created: 2023-11-03T16:42:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-11T18:53:28.000Z (about 2 years ago)
- Last Synced: 2025-08-29T03:15:30.419Z (11 months ago)
- Language: Go
- Size: 989 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Getting Started
On windows you need to run the following to set the KUBECONFIG
`$env:KUBECONFIG = "C:\Users\micha\.kube\config"`
messing around with creating a dockerfile now
```
docker run -e KUBECONFIG=/path/to/your/kubeconfig.yaml -p 8080:8080 golang-kanister-app:local
docker run -e KUBECONFIG="C:\Users\micha\.kube\config" -p 8080:8080 golang-kanister-app:local
docker run -v c:\users\micha\.kube\ -v c:\users\micha\.kube\config -e KUBECONFIG=c:\users\micha\.kube\config -p 8080:8080 golang-kanister-app:local
```
## Deploy Kanister to your Kubernetes cluster
`helm repo add kanister https://charts.kanister.io/`
`helm repo update`
```
helm install kanister --namespace kanister --create-namespace \
kanister/kanister-operator
```
Check out the custom resources we now have within our Kubernetes cluster
`kubectl get crds | grep "kanister"`
## Installing tools
There are two tools including in this script one is `kando` which we won't be using natively and `kanctl`
`kanctl` simplifies this process by allowing the user to create custom Kanister resources - ActionSets and Profiles, override existing ActionSets and validate profiles.
`curl https://raw.githubusercontent.com/kanisterio/kanister/master/scripts/get.sh | bash`
We will be using `kanctl` to create our example profiles and actionsets.
## Adding Profiles
AWS S3
kanctl create profile \
--namespace kanister \
--bucket mc-kanister-aws \
s3compliant \
--access-key \
--secret-key \
--region us-east-2
Azure
kanctl create profile azure --namespace kanister --storage-account kanistersg --storage-key --bucket mc-kanister-azure --region eastus2
Google
kanctl create profile gcp --namespace kanister --project-id cade-297618 --service-key --bucket mc-kanister-gcs --region us-east1
## Deploy your application
## Adding Blueprints to your cluster
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/csi-snapshot/csi-snapshot-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/postgresql/postgres-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/mysql/mysql-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/elasticsearch/elasticsearch-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/aws-rds/aurora-mysql/rds-aurora-snap-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/aws-rds/postgresql/rds-postgres-dump-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/aws-rds/postgresql/rds-postgres-snap-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/cassandra/cassandra-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/cockroachdb/cockroachdb-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/couchbase/couchbase-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/etcd/etcd-in-cluster/k8s/etcd-incluster-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/foundationdb/foundationdb-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/k8ssandra/k8ssandra-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/kafka/adobe-s3-connector/kafka-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/maria/maria-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/mongodb/mongo-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/mssql/mssql-blueprint.yaml -n kanister
kubectl create -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/redis/redis-blueprint.yaml -n kanister
## Create an ActionSet to Protect your application to your profile
kanctl create actionset --action backup --namespace kanister --blueprint mysql-blueprint --statefulset mysql-test/mysql-release --profile kanister/s3-profile-72pvq --secrets mysql=mysql-test/mysql-release
## Deleting Blueprints
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/csi-snapshot/csi-snapshot-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/postgresql/postgres-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/mysql/mysql-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/elasticsearch/elasticsearch-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/aws-rds/aurora-mysql/rds-aurora-snap-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/aws-rds/postgresql/rds-postgres-dump-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/aws-rds/postgresql/rds-postgres-snap-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/cassandra/cassandra-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/cockroachdb/cockroachdb-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/couchbase/couchbase-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/etcd/etcd-in-cluster/k8s/etcd-incluster-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/foundationdb/foundationdb-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/k8ssandra/k8ssandra-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/kafka/adobe-s3-connector/kafka-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/maria/maria-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/mongodb/mongo-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/mssql/mssql-blueprint.yaml -n kanister
kubectl delete -f https://raw.githubusercontent.com/kanisterio/kanister/master/examples/redis/redis-blueprint.yaml -n kanister