Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

CAP above Minikube

Gustavo Varela edited this page Nov 13, 2018 · 6 revisions

Installation of Minikube

This tutorial is based on the official documentation CAP in conjunction with minikube setup.

The latest version of minikube on the repo of SLES 12 does not work, so you better use OBS repo for vitualizazion.

SLES12

zypper ar https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP3/Virtualization:containers.repo zypper in minikube

SLES15

zypper in minikube

Tumbleweed

zypper ar https://download.opensuse.org/repositories/Virtualization:/containers/openSUSE_Tumbleweed/Virtualization:containers.repo zypper in minikube

Install Minikube

minikube start --cpus 2 --memory 18000 --vm-driver=kvm2

Configuration

Put the following configuration in scf-config-values.yaml, ensure to change all the places with VMIPADDRESS to the address of the VM:

secrets:
    # Password for the cluster
    CLUSTER_ADMIN_PASSWORD: changeme

    # Password for SCF to authenticate with UAA
    UAA_ADMIN_CLIENT_SECRET: uaa-admin-client-secret
env:
    # Domain for SCF. DNS for *.DOMAIN must point to the a kube node's (not master)
    # external ip. This must match the value passed to the
    # cert-generator.sh script.
    DOMAIN: VMIPADDRESS.nip.io

    # UAA host/port that SCF will talk to. If you have a custom UAA
    # provide its host and port here. If you are using the UAA that comes
    # with the SCF distribution, simply use the two values below and
    # substitute the cf-dev.io for your DOMAIN used above.
    UAA_HOST: uaa.VMIPADDRESS.nip.io
    UAA_PORT: 2793
kube:
    # The IP address assigned to the kube node pointed to by the domain. The example value here
    # is what the vagrant setup assigns, you will likely need to change it.
    external_ips:
    - VMIPADDRESS
    storage_class:
            # Make sure to change the value in here to whatever storage class you use
            persistent: standard
    # The next line is needed for CaaSP 2, but should _not_ be there for CaaSP 1
    auth: rbac