summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2017-10-02 13:33:12 +0000
committerGerrit Code Review <gerrit@onap.org>2017-10-02 13:33:12 +0000
commitb9644b17f8545dedd3ede40f778b33f9b4ecf480 (patch)
tree626a324cdaa71aa765b67c5b5583613140a01d19
parent82556a836e0d54d364ab1b9b4201d4591e8769dc (diff)
parent2065d737ff76fd0653ddc5430f866fea7de91022 (diff)
Merge "SNIRO Emulator - Adding SNIRO emulator container"
-rw-r--r--kubernetes/mock/Chart.yaml4
-rw-r--r--kubernetes/mock/templates/all-services.yaml17
-rw-r--r--kubernetes/mock/templates/sniroemulator-deployment.yaml25
-rw-r--r--kubernetes/mock/values.yaml6
4 files changed, 52 insertions, 0 deletions
diff --git a/kubernetes/mock/Chart.yaml b/kubernetes/mock/Chart.yaml
new file mode 100644
index 0000000000..baf2e3ad0f
--- /dev/null
+++ b/kubernetes/mock/Chart.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+description: A Helm chart for Kubernetes
+name: mock
+version: 0.1.0
diff --git a/kubernetes/mock/templates/all-services.yaml b/kubernetes/mock/templates/all-services.yaml
new file mode 100644
index 0000000000..8920191ac3
--- /dev/null
+++ b/kubernetes/mock/templates/all-services.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: sniro-emulator
+ namespace: "{{ .Values.nsPrefix }}-mock"
+ labels:
+ app: sniro-emulator
+spec:
+ type: NodePort
+ ports:
+ - port: 80
+ nodePort: {{ .Values.nodePortPrefix }}88
+ targetPort: 9999
+ protocol: TCP
+ name: http
+ selector:
+ app: sniro-emulator
diff --git a/kubernetes/mock/templates/sniroemulator-deployment.yaml b/kubernetes/mock/templates/sniroemulator-deployment.yaml
new file mode 100644
index 0000000000..a0473c95f4
--- /dev/null
+++ b/kubernetes/mock/templates/sniroemulator-deployment.yaml
@@ -0,0 +1,25 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: sniro-emulator
+ namespace: "{{ .Values.nsPrefix }}-mock"
+spec:
+ selector:
+ matchLabels:
+ app: sniro-emulator
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: sniro-emulator
+ name: sniro-emulator
+ spec:
+ containers:
+ - image: "{{ .Values.image.onapmock }}:{{ .Values.image.tag }}"
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: sniro-emulator
+ ports:
+ - containerPort: 9999
+ args: ["--verbose"]
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
diff --git a/kubernetes/mock/values.yaml b/kubernetes/mock/values.yaml
new file mode 100644
index 0000000000..bd56445291
--- /dev/null
+++ b/kubernetes/mock/values.yaml
@@ -0,0 +1,6 @@
+nsPrefix: onap
+pullPolicy: Always
+nodePortPrefix: 302
+image:
+ onapmock: nexus3.onap.org:10001/onap/sniroemulator
+ tag: latest