Categories
docker Kubernetes

Kubernetes: redis-master with Minikube

This will create a redis-master using Minikube (no slaves or sentinels). If you wish to use your own namespace for this installation, be sure to replace itsmetommy with your own. Create namespace kubectl create ns itsmetommy Clone git repository https://github.com/itsmetommy/kubernetes-redis-master Create kubectl -n itsmetommy apply -f . Example kubectl -n itsmetommy apply -f . service “redis-primary” created statefulset.apps […]

Categories
docker Linux

docker-compose redis

Clone git repository Pick your redis version and download the git repository. redis version 4 My example uses 4.0.2-alpine. https://github.com/itsmetommy/docker-redis4 redis version 2-3 My example uses 2.6.17. https://github.com/itsmetommy/docker-redis-2-3 Build and start all containers This will build all the sentinel images, then start all containers in detached mode. docker-compose up –build -d Verify that the master is […]

Categories
docker Kubernetes

Kubernetes: Learning with Minikube

If you haven’t already, check out my previous post Kubernetes: Getting Started with Minikube. helloworld — pod, service Create a folder and cd into it mkdir helloworld-example-01; cd helloworld-example-01 Create pod.yaml Creates 1 pod vi pod.yaml — apiVersion: v1 kind: Pod metadata: name: itsmetommy labels: app: helloworld spec: containers: – name: itsmetommy-httpd image: httpd ports: […]

Categories
docker Kubernetes

Kubernetes: Getting Started with Minikube

The following documentation is for Mac users and to help get you started using Kubernetes with Minikube. Install prerequisites Install Oracle VirtualBox for Mac. Install Docker for Mac. Install Minikube for Mac (should include kubectl). brew cask install minikube Launch minikube with the following command. minikube start Example minikube start Starting local Kubernetes v1.7.5 cluster… Starting VM… Getting VM IP […]

Categories
Code docker Linux

Docker Basics

The below docker commands should give you a basic understanding of how docker works.  This is obviously not a comprehensive lesson, but should give you enough information to take off on your own. Create an account https://hub.docker.com Login to docker hub docker login Search docker hub docker search centos Run a basic container Run in […]