apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: graphqlservice
    env: testing
  name: graphqlservice
  namespace: eventms
spec:
  replicas: 1
  selector:
    matchLabels:
      app: graphqlservice
  template:
    metadata:
      labels:
        app: graphqlservice
        env: testing
      namespace: eventms
    spec:
      containers:
      - image: eventms/graphql.api:linux
        name: graphqlservice
        imagePullPolicy: Always
        env:
          - name: ASPNETCORE_ENVIRONMENT
            value: "Development"
          - name: ConnectionString
            value: "Server=sqldata;Database=Services.graphqlDb;User Id=sa;Password=Pass@word"
          - name: EventBusConnection
            value: "rabbitmq"
          - name: PermissionUrl
            value: "http://permission-api"
          - name: Services
            value: "identity-api,club-api,subscription-api,clubmember-api,room-api,event-api,eventparticipant-api,permission-api,payment-api,eventverification-api"
          - name: PATH_BASE
            value: /api
