apiVersion: "apps/v1"
kind: Deployment
metadata:
  name: nodejs
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nodejs
  template:
    metadata:
      labels:
        app: nodejs
    spec:
      containers:
      - name: nodejs
        image: moosahmed/docker-nodejs-8:3.0
        command: ["/bin/bash","-c", "./start.sh"]
        ports:
        - containerPort: 3000
        env:
        - name: CASSANDRA_HOST1
          value: ${c7a-1-ip}
        - name: CASSANDRA_HOST2
          value: ${c7a-2-ip}
        - name: GOOGLE_MAPS_API_KEY
          value: ${gmaps-key}