Coder Social home page Coder Social logo

azure-aks-couchbase's Introduction

azure-kubernetes-couchbase

This is a walkthrough of setting the Couchbase Operator up on Azure Container Service (AKS).

Deploy an AKS Cluster

AKS is currently in public preview. There are a bunch of nice tutorials on how to use it.

For this walkthrough we're going to use the Azure 2.0 CLI. If you haven't already, you'll need to install that and login. Even if you have the CLI installed already, you might want to update it. An alternative would be to do all this in a cloud shell, though you'll eventually need to get kubectl working locally in order to set up a tunnel to open a web browser to your Couchbase cluster.

To make sure the Azure 2.0 CLI is working properly try running:

az group list

With that all set, we can register the AKS provider. Presumably once the service goes GA this won't be necessary.

az provider register -n Microsoft.ContainerService

If that runs well, you should see:

provider

Now you're ready to create a resource group and a cluster inside that:

az group create --name myResourceGroup --location eastus
az aks create --resource-group myResourceGroup --name myAKSCluster

Note that it's way easier to do this from the CLI because the CLI creates the service principal you need automatically. If you do this in the portal you'll need to create the service principal manually.

deploying

When that's done, or even while it's running, you can login to the Azure Portal and take a look at your new cluster there as well:

portal

Configure kubectl

Now that we have a cluster, the next step is to install and set up kubectl up so it can connect to the cluster.

az aks install-cli
az aks get-credentials --resource-group=myResourceGroup --name=myAKSCluster

You should see something like this:

getcreds

You might need to set your KUBECONFIG too:

export KUBECONFIG=~/.kube/config

With all that set up we can make sure our kubectl is working by running:

kubectl get nodes

That should show three nodes:

getnodes

Deploying the Operator

Once you have an AKS cluster deployed and a running kubectl, you're ready to deploy the Operator. The documentation on that is here.

To create the deployment and check it deployed, run this:

kubectl create -f https://s3.amazonaws.com/packages.couchbase.com/kubernetes/beta/operator.yaml
kubectl get deployments

You should see something like this:

operatordeployed

Deploying a Couchbase Cluster

We're there! Time to get a live cluster. Run this:

kubectl create -f https://s3.amazonaws.com/packages.couchbase.com/kubernetes/beta/secret.yaml
kubectl create -f https://s3.amazonaws.com/packages.couchbase.com/kubernetes/beta/couchbase-cluster.yaml

That should give this:

couchbasecreated

You can view the Couchbase and operator pods by running:

kubectl get pods

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:

portforward

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

loginscreen

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

webui

azure-aks-couchbase's People

Contributors

benofben avatar sliburd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

azure-aks-couchbase's Issues

Instructions have to be updated for 1.x of Operator

  • Instructions as specified do not work with 1.x version of operator .
    -- missing instructions to create service account and associating the cluster role with service account
  • The .yaml files referred to in the instructions are not available in the s3 bucket. Instructions to be updated to refer to ones that is available in downloads page

Figure out ACR story

Maybe it doesn't matter because we just use dockerhub? Or do we want it for custom images?

Get working with ACI

Ideally we'd use the ACI connect to create nodes. ACI recently added network features that should work with the operator. This need to be tested. There's another question of whether the requirement for secrets will cause issues.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.