diff options
Diffstat (limited to 'kubernetes/mock/templates')
-rw-r--r-- | kubernetes/mock/templates/all-services.yaml | 17 | ||||
-rw-r--r-- | kubernetes/mock/templates/sniroemulator-deployment.yaml | 25 |
2 files changed, 42 insertions, 0 deletions
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" |