https://github.com/oracle-quickstart/oke-couchbase
Describes how to use Couchbase on Oracle Kubernetes Engine (OKE)
https://github.com/oracle-quickstart/oke-couchbase
cloud containers couchbase docker kubernetes oci oke partner-led
Last synced: 10 months ago
JSON representation
Describes how to use Couchbase on Oracle Kubernetes Engine (OKE)
- Host: GitHub
- URL: https://github.com/oracle-quickstart/oke-couchbase
- Owner: oracle-quickstart
- License: apache-2.0
- Created: 2018-09-12T20:03:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T00:24:20.000Z (about 6 years ago)
- Last Synced: 2024-12-29T20:15:49.903Z (12 months ago)
- Topics: cloud, containers, couchbase, docker, kubernetes, oci, oke, partner-led
- Homepage:
- Size: 1.21 MB
- Stars: 1
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oke-couchbase
This is a walkthrough of setting the [Couchbase Operator](https://developer.couchbase.com/documentation/server/current/operator/overview.html) up on [Oracle Cloud Infrastructure Container Engine for Kubernetes (OKE)](https://cloud.oracle.com/containers/kubernetes-engine). It is developed jointly by Oracle and Couchbase.
## Prerequisites
First you're going to need to setup an Oracle Cloud account, your environmental variables, an OKE cluster and your kubectl. It sounds like a lot, but there's a nice walkthrough [here](https://github.com/oracle/oke-quickstart-prerequisites) that should help.
## Deploying the Operator
Great, you made it!
Once you have an OKE cluster deployed and a running kubectl, you're ready to deploy the Operator. The documentation on that is [here](https://docs.couchbase.com/operator/1.0/install-kubernetes.html).
First, you need to download stuff. This includes a customer kubectl as Couchbase has forked it and created their own. There are per platform binaries for those. This downloads the Mac one:
curl -O https://s3.amazonaws.com/packages.couchbase.com/kubernetes/1.0.0/couchbase-autonomous-operator-kubernetes_1.0.0-macos_x86_64.zip
unzip couchbase-autonomous-operator-kubernetes_1.0.0-macos_x86_64.zip
cd couchbase-autonomous-operator-kubernetes_1.0.0-macos_x86_64
ls
That gives this:

To create the deployment and check it deployed, run this:
kubectl create -f cluster-role.yaml
kubectl create serviceaccount couchbase-operator --namespace default
kubectl create clusterrolebinding couchbase-operator --clusterrole couchbase-operator --serviceaccount default:couchbase-operator
kubectl create -f operator.yaml
When you've done all that, you can check the Operator deployed with:
kubectl get deployments
You should see something like this:

## Deploying a Couchbase Cluster
We're there! Time to get a live cluster. Run this:
kubectl create -f secret.yaml
kubectl create -f couchbase-cluster.yaml
That should give this:

You can view the Couchbase and operator pods by running:
kubectl get pods
This gives:

## Accessing the Couchbase Web UI
You've now got a cluster. But to use it you probably want to set up port forwarding. To do that run:
kubectl port-forward cb-example-0000 8091:8091
Leave that command running:

Now open up a browser to http://localhost:8091

The username is `Administrator` and password is `password`. And now you're in!

## Deleting the Operator
If you want to delete the Operator, you can run this:
kubectl delete deployment couchbase-operator
kubectl delete crd couchbaseclusters.couchbase.com
That gives this:
