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