• +43 660 1453541
  • contact@germaniumhq.com

Install ManageIQ Into Your Local Kubernetes Cluster


Install ManageIQ Into Your Local Kubernetes Cluster

In order to do that, we will start with creating a deployment for it. Fortunately there is already a docker image, so creating the deployment is quite straightforward:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: manageiq
  labels:
    app: manageiq
spec:
  replicas: 1
  selector:
    matchLabels:
      app: manageiq
  template:
    metadata:
      labels:
        app: manageiq
    spec:
      containers:
      - name: manageiq
        image: manageiq/manageiq:hammer-1
        ports:
        - containerPort: 443

Then we will create the service. We will just export its port, via a NodePort. To create an ingress rule for it, is a bit more tricky, and I will try it in a follow up article.

Also note, that this doesn’t takes yet care of the persistence, this is good just for trying things out, again we will try to a address that in a followup article.

The service:

apiVersion: v1
kind: Service
metadata:
  name: manageiq
  labels:
    app: manageiq
spec:
  type: NodePort
  ports:
  - port: 443
    nodePort: 30443
    protocol: TCP
  selector:
    app: manageiq

Or, in order to make it simpler I assembled these into their own git repository on GitHub, so you can just:

kubectl apply -f https://raw.githubusercontent.com/bmustiata/manage-iq-kubernetes/master/manageiq-node-port.yml

Then just go to http://your-kube-node:30443/. The default username/pass are admin/smartvm.

Have fun playing with ManageIQ.