summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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