diff --git a/anvil-mongodb/deploy.sh b/anvil-mongodb/deploy.sh index 72f37bd..eea4e08 100644 --- a/anvil-mongodb/deploy.sh +++ b/anvil-mongodb/deploy.sh @@ -10,5 +10,3 @@ kubectl apply -f mongodb-secret.yml kubectl apply -f mongodb-deployment.yml kubectl apply -f mongodb-configmap.yml - -kubectl apply -f mongodb-express.yml diff --git a/anvil-mongodb/mongodb-express.yml b/anvil-mongodb/mongodb-express.yml deleted file mode 100644 index 0355f3d..0000000 --- a/anvil-mongodb/mongodb-express.yml +++ /dev/null @@ -1,50 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: mongo-express-deployment - labels: - app: mongo-express -spec: - replicas: 1 - selector: - matchLabels: - app: mongo-express - template: - metadata: - labels: - app: mongo-express - spec: - containers: - - name: mongo-express - image: mongo-express - ports: - - containerPort: 8081 - env: - - name: ME_CONFIG_MONGODB_ADMINUSERNAME - valueFrom: - secretKeyRef: - name: mongodb-secret - key: mongo-root-username - - name: ME_CONFIG_MONGODB_ADMINPASSWORD - valueFrom: - secretKeyRef: - name: mongodb-secret - key: mongo-root-password - - name: ME_CONFIG_MONGODB_SERVER - valueFrom: - configMapKeyRef: - name: mongodb-configmap - key: database_url ---- -apiVersion: v1 -kind: Service -metadata: - name: mongo-express-service -spec: - selector: - app: mongo-express - type: LoadBalancer - ports: - - protocol: TCP - port: 8081 - targetPort: 8081