From f173a3063411601f22330bb5e017d729447ff1cb Mon Sep 17 00:00:00 2001 From: Dick Chesterwood Date: Thu, 24 May 2018 21:04:38 +0100 Subject: [PATCH] case #19 minikube versions --- k8s-manifests/release3/replica-set.yaml | 21 +++++++++++++++++++++ k8s-manifests/release3/service.yaml | 12 ++++++++++++ 2 files changed, 33 insertions(+) diff --git a/k8s-manifests/release3/replica-set.yaml b/k8s-manifests/release3/replica-set.yaml index e656da3..c8147fd 100755 --- a/k8s-manifests/release3/replica-set.yaml +++ b/k8s-manifests/release3/replica-set.yaml @@ -119,3 +119,24 @@ spec: - name: SPRING_PROFILES_ACTIVE value: production-microservice imagePullPolicy: Always +--- +apiVersion: apps/v1 +kind: ReplicaSet +metadata: + name: mongodb + labels: + app: mongodb +spec: + replicas: 1 + selector: + matchLabels: + app: mongodb + template: + metadata: + labels: + app: mongodb + spec: + containers: + - name: fleetman-mongogb + image: mongo:3.6.5-jessie + imagePullPolicy: Always diff --git a/k8s-manifests/release3/service.yaml b/k8s-manifests/release3/service.yaml index 949a761..9a43e21 100755 --- a/k8s-manifests/release3/service.yaml +++ b/k8s-manifests/release3/service.yaml @@ -53,3 +53,15 @@ spec: port: 80 nodePort: 30040 type: NodePort +--- +kind: Service +apiVersion: v1 +metadata: + name: fleetman-mongodb +spec: + selector: + app: mongodb + ports: + - name: mongoport + port: 27017 + type: ClusterIP