Add onap parent chart 09/31509/15
authorMike Elliott <mike.elliott@amdocs.com>
Mon, 12 Feb 2018 20:44:57 +0000 (15:44 -0500)
committerMike Elliott <mike.elliott@amdocs.com>
Fri, 23 Feb 2018 20:12:52 +0000 (15:12 -0500)
This is a top-level parent helm chart which deploys customizations
of the ONAP platform.

The parent ONAP chart represents the start of OOM's move away from
the oneclick bash scripts and towards the direct use of Helm to
manage configuration and deployment of ONAP.

How to deploy onap chart from local oom/kubernetes codebase.

** need to create/update dependencies defined in the chart's
** requirements.yaml
helm dep update onap/

** deploy the onap parent chart (and all referenced subcharts)
** with the "release" name of 'onap'
helm install onap/ -n onap

Change-Id: I71bee25770bdce82a47bfabb04946bb4fad069a2
Issue-ID: OOM-265
Signed-off-by: Mike Elliott <mike.elliott@amdocs.com>
kubernetes/onap/Chart.yaml [new file with mode: 0644]
kubernetes/onap/requirements.yaml [new file with mode: 0644]
kubernetes/onap/resources/environments/onap-demo.yaml [new file with mode: 0644]
kubernetes/onap/values.yaml [new file with mode: 0644]

diff --git a/kubernetes/onap/Chart.yaml b/kubernetes/onap/Chart.yaml
new file mode 100644 (file)
index 0000000..db8a30f
--- /dev/null
@@ -0,0 +1,9 @@
+apiVersion: v1
+name: onap
+version: 2.0.0
+appVersion: beijing
+description: Open Network Automation Platform (ONAP)
+home: https://www.onap.org/
+sources:
+- https://gerrit.onap.org/r/#/admin/projects/
+icon: https://wiki.onap.org/download/thumbnails/1015829/onap_704x271%20copy.png?version=1&modificationDate=1488326334000&api=v2
diff --git a/kubernetes/onap/requirements.yaml b/kubernetes/onap/requirements.yaml
new file mode 100644 (file)
index 0000000..8f12312
--- /dev/null
@@ -0,0 +1,101 @@
+# Referencing a named repo called 'local'.
+# Can add this repo by running commands like:
+# > helm serve
+# > helm repo add local http://127.0.0.1:8879
+dependencies:
+  - name: aaf
+    version: ~1.1.0
+    repository: '@local'
+    condition: aaf.enabled
+  - name: aai
+    version: ~0.1.0
+    repository: '@local'
+    condition: aai.enabled
+  - name: appc
+    version: ~0.1.0
+    repository: '@local'
+    condition: appc.enabled
+  - name: clamp
+    version: ~1.1.0
+    repository: '@local'
+    condition: clamp.enabled
+  - name: cli
+    version: ~0.1.0
+    repository: '@local'
+    condition: cli.enabled
+  - name: consul
+    version: ~1.1.0
+    repository: '@local'
+    condition: consul.enabled
+  - name: dcaegen2
+    version: ~1.1.0
+    repository: '@local'
+    condition: dcaegen2.enabled
+  - name: esr
+    version: ~1.1.0
+    repository: '@local'
+    condition: esr.enabled
+  - name: kube2msb
+    version: ~0.1.0
+    repository: '@local'
+    condition: kube2msb.enabled
+  - name: log
+    version: ~0.1.0
+    repository: '@local'
+    condition: log.enabled
+  - name: message-router
+    version: ~0.1.0
+    repository: '@local'
+    condition: message-router.enabled
+  - name: mock
+    version: ~0.1.0
+    repository: '@local'
+    condition: mock.enabled
+  - name: msb
+    version: ~0.1.0
+    repository: '@local'
+    condition: msb.enabled
+  - name: multicloud
+    version: ~1.1.0
+    repository: '@local'
+    condition: multicloud.enabled
+  - name: policy
+    version: ~0.1.0
+    repository: '@local'
+    condition: policy.enabled
+  - name: portal
+    version: ~0.1.0
+    repository: '@local'
+    condition: portal.enabled
+  - name: robot
+    version: ~0.1.0
+    repository: '@local'
+    condition: robot.enabled
+  - name: sdc
+    version: ~0.1.0
+    repository: '@local'
+    condition: sdc.enabled
+  - name: sdnc
+    version: ~0.1.0
+    repository: '@local'
+    condition: sdnc.enabled
+  - name: so
+    version: ~2.0.0
+    repository: '@local'
+    condition: so.enabled
+  - name: uui
+    version: ~1.1.0
+    repository: '@local'
+    condition: uui.enabled
+  - name: vfc
+    version: ~0.1.0
+    repository: '@local'
+    condition: vfc.enabled
+  - name: vid
+    version: ~0.1.0
+    repository: '@local'
+    condition: vid.enabled
+  - name: vnfsdk
+    version: ~1.1.0
+    repository: '@local'
+    condition: vnfsdk.enabled
\ No newline at end of file
diff --git a/kubernetes/onap/resources/environments/onap-demo.yaml b/kubernetes/onap/resources/environments/onap-demo.yaml
new file mode 100644 (file)
index 0000000..67b6f40
--- /dev/null
@@ -0,0 +1,60 @@
+#################################################################
+# Global configuration overrides.
+#
+# These overrides will affect all helm charts (ie. applications)
+# that are listed below and are 'enabled'.
+#################################################################
+global:
+  # Change to an unused port prefix range to prevent port conflicts
+  # with other instances running within the same k8s cluster
+  nodePortPrefix: 302
+
+  # image repositories
+  repository: nexus3.onap.org:10001
+  repositorySecret: eyJuZXh1czMub25hcC5vcmc6MTAwMDEiOnsidXNlcm5hbWUiOiJkb2NrZXIiLCJwYXNzd29yZCI6ImRvY2tlciIsImVtYWlsIjoiQCIsImF1dGgiOiJaRzlqYTJWeU9tUnZZMnRsY2c9PSJ9fQ==
+  # readiness check
+  readinessRepository: oomk8s
+  # logging agent
+  loggingRepository: docker.elastic.co
+
+  # image pull policy
+  pullPolicy: IfNotPresent
+
+  # override default mount path root directory
+  # referenced by persistent volumes and log files
+  persistence:
+    mountPath: /dockerdata-nfs
+
+  # flag to enable debugging - application support required
+  debugEnabled: true
+
+#################################################################
+# Enable/disable and configure helm charts (ie. applications)
+# to customize the ONAP deployment.
+#################################################################
+consul:
+  enabled: true
+
+so:
+  enabled: true
+  replicaCount: 1
+  liveness:
+    # necessary to disable liveness probe when setting breakpoints
+    # in debugger so K8s doesn't restart unresponsive container
+    enabled: true
+    
+  # so server configuration
+  config:
+    # message router configuration
+    dmaapTopic: "AUTO"
+    # openstack configuration
+    openStackUserName: "vnf_user"
+    openStackRegion: "RegionOne"
+    openStackKeyStoneUrl: "http://1.2.3.4:5000"
+    openStackServiceTenantName: "service"
+    openStackEncryptedPasswordHere: "c124921a3a0efbe579782cde8227681e"
+
+  # configure embedded mariadb
+  mariadb:
+    config:
+      mariadbRootPassword: password
\ No newline at end of file
diff --git a/kubernetes/onap/values.yaml b/kubernetes/onap/values.yaml
new file mode 100644 (file)
index 0000000..5340c95
--- /dev/null
@@ -0,0 +1,105 @@
+#################################################################
+# Global configuration overrides.
+#
+# These overrides will affect all helm charts (ie. applications)
+# that are listed below and are 'enabled'.
+#################################################################
+global:
+  # Change to an unused port prefix range to prevent port conflicts
+  # with other instances running within the same k8s cluster
+  nodePortPrefix: 302
+
+  # image repositories
+  repository: nexus3.onap.org:10001
+  repositorySecret: eyJuZXh1czMub25hcC5vcmc6MTAwMDEiOnsidXNlcm5hbWUiOiJkb2NrZXIiLCJwYXNzd29yZCI6ImRvY2tlciIsImVtYWlsIjoiQCIsImF1dGgiOiJaRzlqYTJWeU9tUnZZMnRsY2c9PSJ9fQ==
+  # readiness check
+  readinessRepository: oomk8s
+  # logging agent
+  loggingRepository: docker.elastic.co
+
+  # image pull policy
+  pullPolicy: Always
+
+  # default mount path root directory referenced
+  # by persistent volumes and log files
+  persistence:
+    mountPath: /dockerdata-nfs
+
+  # flag to enable debugging - application support required
+  debugEnabled: false
+
+#################################################################
+# Enable/disable and configure helm charts (ie. applications)
+# to customize the ONAP deployment.
+#################################################################
+aaf:
+  enabled: false
+aai:
+  enabled: false
+appc:
+  enabled: false
+clamp:
+  enabled: false
+cli:
+  enabled: false
+consul: # Consul Health Check Monitoring
+  enabled: false
+dcaegen2:
+  enabled: false
+esr:
+  enabled: false
+kube2msb:
+  enabled: false
+log:
+  enabled: false
+message-router:
+  enabled: false
+mock:
+  enabled: false
+msb:
+  enabled: false
+multicloud:
+  enabled: false
+policy:
+  enabled: false
+portal:
+  enabled: false
+robot: # Robot Health Check
+  enabled: false
+sdc:
+  enabled: false
+sdnc:
+  enabled: false
+so: # Service Orchestrator
+  enabled: true
+
+  replicaCount: 1
+
+  liveness:
+    # necessary to disable liveness probe when setting breakpoints
+    # in debugger so K8s doesn't restart unresponsive container
+    enabled: true
+
+  # so server configuration
+  config:
+    # message router configuration
+    dmaapTopic: "AUTO"
+    # openstack configuration
+    openStackUserName: "vnf_user"
+    openStackRegion: "RegionOne"
+    openStackKeyStoneUrl: "http://1.2.3.4:5000"
+    openStackServiceTenantName: "service"
+    openStackEncryptedPasswordHere: "c124921a3a0efbe579782cde8227681e"
+
+  # configure embedded mariadb
+  mariadb:
+    config:
+      mariadbRootPassword: password
+uui:
+  enabled: false
+vfc:
+  enabled: false
+vid:
+  enabled: false
+vnfsdk:
+  enabled: false
\ No newline at end of file