summaryrefslogtreecommitdiffstats
path: root/kubernetes/robot/templates
diff options
context:
space:
mode:
authorkerenj <keren.joseph@amdocs.com>2017-08-23 12:46:02 +0000
committerkerenj <keren.joseph@amdocs.com>2017-08-24 10:10:15 +0000
commitfc2caa6c458c77e10e738a8e9af058d222ac9405 (patch)
tree2aa6de5d807194bb15a9c7d94052e8a6fa098e09 /kubernetes/robot/templates
parentbf4b4a00464a1adfea03155ee3b9491ac0fe9f4d (diff)
robot K8S-Helm Parameterization
changed robot k8s deployment to support helm parameterization. updated image to 1.1 Issue-ID: OOM-52 Change-Id: Ibd7cd5a73589abb42940897a5a524cb44f53dd98 Signed-off-by: kerenj <keren.joseph@amdocs.com>
Diffstat (limited to 'kubernetes/robot/templates')
-rw-r--r--kubernetes/robot/templates/all-services.yaml14
-rw-r--r--kubernetes/robot/templates/robot-deployment.yaml55
2 files changed, 69 insertions, 0 deletions
diff --git a/kubernetes/robot/templates/all-services.yaml b/kubernetes/robot/templates/all-services.yaml
new file mode 100644
index 0000000000..2b80a29c83
--- /dev/null
+++ b/kubernetes/robot/templates/all-services.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: robot
+ name: robot
+ namespace: {{ .Values.NS }}
+spec:
+ ports:
+ - port: 88
+ nodePort: 30209
+ selector:
+ app: robot
+ type: NodePort
diff --git a/kubernetes/robot/templates/robot-deployment.yaml b/kubernetes/robot/templates/robot-deployment.yaml
new file mode 100644
index 0000000000..c4bc9544d8
--- /dev/null
+++ b/kubernetes/robot/templates/robot-deployment.yaml
@@ -0,0 +1,55 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: robot
+ namespace: {{ .Values.NS }}
+spec:
+ selector:
+ matchLabels:
+ app: robot
+ template:
+ metadata:
+ labels:
+ app: robot
+ name: robot
+ spec:
+ containers:
+ - image: {{ .Values.image.testsuite }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: robot
+ volumeMounts:
+ - name: robot-eteshare
+ mountPath: /share
+ - name: robot-assets
+ mountPath: /var/opt/OpenECOMP_ETE/robot/assets
+ - name: robot-resources
+ mountPath: /var/opt/OpenECOMP_ETE/robot/resources
+ - name: robot-testsuites
+ mountPath: /var/opt/OpenECOMP_ETE/robot/testsuites
+ - name: lighttpd-authorization
+ mountPath: /etc/lighttpd/authorization
+ ports:
+ - containerPort: 88
+ readinessProbe:
+ tcpSocket:
+ port: 88
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: robot-eteshare
+ hostPath:
+ path: /dockerdata-nfs/onap/robot/eteshare
+ - name: robot-assets
+ hostPath:
+ path: /dockerdata-nfs/onap/robot/robot/assets
+ - name: robot-resources
+ hostPath:
+ path: /dockerdata-nfs/onap/robot/robot/resources
+ - name: robot-testsuites
+ hostPath:
+ path: /dockerdata-nfs/onap/robot/robot/testsuites
+ - name: lighttpd-authorization
+ hostPath:
+ path: /dockerdata-nfs/onap/robot/authorization
+ imagePullSecrets:
+ - name: onap-docker-registry-key