summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-09-02 16:15:41 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-09-02 16:16:27 +0800
commit683645efa48ff5b0b80f05af74c303cc194622c9 (patch)
tree7bf6df6a16f3feaa1b8d2438834efea86ba5cbb8 /kubernetes
parent3f1a25e3c2189df4b0252cdd58757144ae832d0e (diff)
Kube2MSB Registrator k8s deployment
Issue-ID: OOM-260 Change-Id: Ie79fc2d33d3695919cdcb44f5a22cf424019cfb7 Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/oom/Chart.yaml4
-rw-r--r--kubernetes/oom/templates/oom-registrator-deployment.yaml27
-rw-r--r--kubernetes/oom/values.yaml8
3 files changed, 39 insertions, 0 deletions
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