summaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorrui hu <hu.rui2@zte.com.cn>2017-09-05 04:56:26 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-05 04:56:26 +0000
commit6fc7dc56c5b87ba25938799b5e0ff577764a663f (patch)
tree114a810200811d0b28e319053fdf804b1554df2e /kubernetes
parentda59ee468ca033c1939c6802faae6d72fe19577e (diff)
parent683645efa48ff5b0b80f05af74c303cc194622c9 (diff)
Merge "Kube2MSB Registrator k8s deployment"
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