From 683645efa48ff5b0b80f05af74c303cc194622c9 Mon Sep 17 00:00:00 2001 From: HuabingZhao Date: Sat, 2 Sep 2017 16:15:41 +0800 Subject: Kube2MSB Registrator k8s deployment Issue-ID: OOM-260 Change-Id: Ie79fc2d33d3695919cdcb44f5a22cf424019cfb7 Signed-off-by: HuabingZhao --- kubernetes/oom/Chart.yaml | 4 ++++ .../oom/templates/oom-registrator-deployment.yaml | 27 ++++++++++++++++++++++ kubernetes/oom/values.yaml | 8 +++++++ 3 files changed, 39 insertions(+) create mode 100644 kubernetes/oom/Chart.yaml create mode 100644 kubernetes/oom/templates/oom-registrator-deployment.yaml create mode 100644 kubernetes/oom/values.yaml (limited to 'kubernetes') diff --git a/kubernetes/oom/Chart.yaml b/kubernetes/oom/Chart.yaml new file mode 100644 index 0000000000..0c62d86b31 --- /dev/null +++ b/kubernetes/oom/Chart.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +description: A Helm chart for Kubernetes +name: oom-registrator +version: 0.1.0 diff --git a/kubernetes/oom/templates/oom-registrator-deployment.yaml b/kubernetes/oom/templates/oom-registrator-deployment.yaml new file mode 100644 index 0000000000..77f71f424e --- /dev/null +++ b/kubernetes/oom/templates/oom-registrator-deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: oom-registrator + namespace: "{{ .Values.nsPrefix }}-oom" +spec: + replicas: 1 + selector: + matchLabels: + app: oom-registrator + template: + metadata: + labels: + app: oom-registrator + name: oom-registrator + spec: + hostname: oom-registrator + containers: + - args: + image: {{ .Values.image.kube2msb }} + name: oom-registrator + env: + - name: KUBE_MASTER_URL + value: {{ .Values.kubeMasterUrl }} + - name: MSB_URL + value: {{ .Values.discoveryUrl }} + imagePullPolicy: {{ .Values.pullPolicy }} diff --git a/kubernetes/oom/values.yaml b/kubernetes/oom/values.yaml new file mode 100644 index 0000000000..aa8d771a71 --- /dev/null +++ b/kubernetes/oom/values.yaml @@ -0,0 +1,8 @@ +nsPrefix: onap +pullPolicy: IfNotPresent +image: + #need help from LF to build and push image to nexus3.onap.org + #kube2msb: nexus3.onap.org:10001/onap/msb/kube2msb + kube2msb: zhaohuabing/kube2msb:latest +kubeMasterUrl: http://10.96.33.43:8080/r/projects/1a7/kubernetes:6443 +discoveryUrl: http://10.43.6.205:10081 \ No newline at end of file -- cgit 1.2.3-korg