Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

CDS can be deployed to minikube.

Rough outline of steps. 

  1. Install minikube using k8s before 1.16 (our OOM charts are not compatible with 1.16)
  2. install helm (I had 2.15.2)
  3. clone OOM repo (git clone "https://gerrit.onap.org/r/oom")

  4. Start HELM service (helm serve&)
  5. go into "kubernetes" dir inside oom
  6. Build common and CDS charts (make common cds)
  7. Copy values.yaml file (we'll call it overrides file) to another place (we'll reference it later)
  8. Edit the file and add the following lines (note spacing should be lining up)

    cds-blueprints-processor:                                                              
      dmaapEnabled: false 
    global:
      nodePortPrefix: 302
      nodePortPrefixExt: 304
      repository: nexus3.onap.org:10001
      readinessRepository: oomk8s
      readinessImage: readiness-check:2.0.2
      loggingRepository: docker.elastic.co
      loggingImage: beats/filebeat:5.5.0
      persistence:
        enabled: true
        storageClass: standard
        ##mountPath: /dockerdata-nfs
  9. Do modification for mariadb-galera as well

    mariadb-galera:
      config:
          userName: sdnctl
          userPassword: sdnctl
          mariadbRootPassword: sdnctl
          mysqlDatabase: sdnctl
      nameOverride: cds-db
      service:
        name: cds-db
        portName: cds-db
      replicaCount: 1
      persistence:
        enabled: true
        storageClass: standard
        mountSubPath: cds/data
  10. You can check which storageclass you'll need by using "kubectl get sc" 


  11. Deploy tiller
    But first, check if you are in the right context "kubectl config current-context". You want to see minikube.
    helm init 
  12. Create k8s role/rolebindings to get pods. This is needed by the readiness probes which do equivalent of "kubectl get pod |grep something".
    kubectl create role pod-reader --verb=get --verb=list --verb=watch --resource=pods --resource=statefulset --resource=deployment
    kubectl create rolebinding pod-reader-binding --role pod-reader --serviceaccount=default:default --namespace=default
  13. Deploy the helm chart:
    Go into kubernetes/cds directory

    helm upgrade -i minikubecds . -f /location/to/cds.overrides

Note. Currently, elalto branch of OOM is more tested. I've just noticed that master OOM provides CDS 0.6.3, which is outdated.... 


  • No labels