diff options
author | HuabingZhao <zhao.huabing@zte.com.cn> | 2018-03-12 03:29:20 -0400 |
---|---|---|
committer | HuabingZhao <zhao.huabing@zte.com.cn> | 2018-03-12 03:57:46 -0400 |
commit | ed957a4fd4dc7edaf0a980f6f7e8f6a974b6dbca (patch) | |
tree | e810b1a247b11b76e0c495f3caffb2703171b23d | |
parent | a57d8dd090a3d3d747ba40ef58e14215e88adfa2 (diff) |
Deploy kube2msb along with msb containers
Issue-ID: OOM-280
Deploy kube2msb along with msb contianers, so the ONAP services can be sync to MSB after MSB is restarted
Change-Id: I408e27c72c4b2169c0babe2562e74d4a645683de
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
-rw-r--r-- | TOSCA/Helm/onap-blueprint.yaml | 10 | ||||
-rw-r--r-- | kubernetes/kube2msb/Chart.yaml | 4 | ||||
-rw-r--r-- | kubernetes/kube2msb/values.yaml | 6 | ||||
-rw-r--r-- | kubernetes/msb/templates/kube2msb-registrator-deployment.yaml (renamed from kubernetes/kube2msb/templates/kube2msb-registrator-deployment.yaml) | 15 | ||||
-rw-r--r-- | kubernetes/msb/values.yaml | 4 | ||||
-rw-r--r-- | kubernetes/onap/requirements.yaml | 6 | ||||
-rw-r--r-- | kubernetes/onap/values.yaml | 4 | ||||
-rw-r--r-- | kubernetes/oneclick/setenv.bash | 4 |
8 files changed, 23 insertions, 30 deletions
diff --git a/TOSCA/Helm/onap-blueprint.yaml b/TOSCA/Helm/onap-blueprint.yaml index 73a0390bd7..f86b590eda 100644 --- a/TOSCA/Helm/onap-blueprint.yaml +++ b/TOSCA/Helm/onap-blueprint.yaml @@ -279,13 +279,3 @@ node_templates: relationships: - type: cloudify.relationships.connected_to target: k8s_master - - kube2msb: - type: cloudify.nodes.Helm - properties: - args: - - { get_input: namespace_perfix } - - kube2msb - relationships: - - type: cloudify.relationships.connected_to - target: k8s_master diff --git a/kubernetes/kube2msb/Chart.yaml b/kubernetes/kube2msb/Chart.yaml deleted file mode 100644 index b648adc701..0000000000 --- a/kubernetes/kube2msb/Chart.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -description: A Helm chart for Kubernetes -name: kube2msb -version: 0.1.0 diff --git a/kubernetes/kube2msb/values.yaml b/kubernetes/kube2msb/values.yaml deleted file mode 100644 index 92694482e8..0000000000 --- a/kubernetes/kube2msb/values.yaml +++ /dev/null @@ -1,6 +0,0 @@ -nsPrefix: onap -pullPolicy: IfNotPresent -image: - kube2msb: nexus3.onap.org:10001/onap/oom/kube2msb -kubeMasterUrl: https://kubernetes.default.svc.cluster.local:443 -discoveryUrl: http://msb-discovery.{{ .Values.nsPrefix }}:10081 diff --git a/kubernetes/kube2msb/templates/kube2msb-registrator-deployment.yaml b/kubernetes/msb/templates/kube2msb-registrator-deployment.yaml index d6b194008b..f95faf69d0 100644 --- a/kubernetes/kube2msb/templates/kube2msb-registrator-deployment.yaml +++ b/kubernetes/msb/templates/kube2msb-registrator-deployment.yaml @@ -16,6 +16,21 @@ spec: name: kube2msb-registrator spec: hostname: kube2msb-registrator + initContainers: + - command: + - /root/ready.py + args: + - --container-name + - msb-discovery + env: + - name: NAMESPACE + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.namespace + image: {{ .Values.image.readiness }} + imagePullPolicy: {{ .Values.pullPolicy }} + name: kube2msb-registrator-readiness containers: - args: image: {{ .Values.image.kube2msb }} diff --git a/kubernetes/msb/values.yaml b/kubernetes/msb/values.yaml index 8c50e37e2b..10e3be4230 100644 --- a/kubernetes/msb/values.yaml +++ b/kubernetes/msb/values.yaml @@ -5,6 +5,7 @@ image: consul: consul:0.9.3 discovery: nexus3.onap.org:10001/onap/msb/msb_discovery:1.1.0-SNAPSHOT-latest apigateway: nexus3.onap.org:10001/onap/msb/msb_apigateway:1.1.0-SNAPSHOT-latest + kube2msb: nexus3.onap.org:10001/onap/oom/kube2msb consulPort: 8500 consulNodePort: 30500 @@ -25,3 +26,6 @@ eagPort_https: 443 eagNodePort: 30082 eagNodePort_https: 30446 eagReplicas: 1 + +kubeMasterUrl: https://kubernetes.default.svc.cluster.local:443 +discoveryUrl: http://msb-discovery.{{ .Values.nsPrefix }}:10081 diff --git a/kubernetes/onap/requirements.yaml b/kubernetes/onap/requirements.yaml index 4a3dc3a310..a8fd3eb785 100644 --- a/kubernetes/onap/requirements.yaml +++ b/kubernetes/onap/requirements.yaml @@ -38,10 +38,6 @@ dependencies: 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' @@ -104,4 +100,4 @@ dependencies: - name: vnfsdk version: ~1.1.0 repository: '@local' - condition: vnfsdk.enabled
\ No newline at end of file + condition: vnfsdk.enabled diff --git a/kubernetes/onap/values.yaml b/kubernetes/onap/values.yaml index a1d901ac0f..96455a0156 100644 --- a/kubernetes/onap/values.yaml +++ b/kubernetes/onap/values.yaml @@ -49,8 +49,6 @@ dcaegen2: enabled: false esr: enabled: false -kube2msb: - enabled: false log: enabled: false message-router: @@ -103,4 +101,4 @@ vfc: vid: enabled: false vnfsdk: - enabled: false
\ No newline at end of file + enabled: false diff --git a/kubernetes/oneclick/setenv.bash b/kubernetes/oneclick/setenv.bash index 312d2c45fb..3f1af4de8a 100644 --- a/kubernetes/oneclick/setenv.bash +++ b/kubernetes/oneclick/setenv.bash @@ -1,7 +1,7 @@ #!/bin/bash -# Deploying MSB first and kube2msb last will ensure all the ONAP services can be registered to MSB -HELM_APPS=('consul' 'msb' 'mso' 'message-router' 'sdnc' 'vid' 'robot' 'portal' 'policy' 'appc' 'aai' 'sdc' 'dcaegen2' 'log' 'cli' 'multicloud' 'clamp' 'vnfsdk' 'uui' 'aaf' 'vfc' 'kube2msb' 'esr') +# Deploying MSB first so the started ONAP services can be registered to MSB +HELM_APPS=('consul' 'msb' 'mso' 'message-router' 'sdnc' 'vid' 'robot' 'portal' 'policy' 'appc' 'aai' 'sdc' 'dcaegen2' 'log' 'cli' 'multicloud' 'clamp' 'vnfsdk' 'uui' 'aaf' 'vfc' 'esr') ONAP_DOCKER_REGISTRY=${ONAP_DOCKER_REGISTRY:-nexus3.onap.org:10001} ONAP_DOCKER_USER=${ONAP_DOCKER_USER:-docker} ONAP_DOCKER_PASS=${ONAP_DOCKER_PASS:-docker} |