apiVersion: apps/v1
kind: Deployment
metadata:
  name: trips
  namespace: api-dev
  labels:
    app: trips
spec:
  replicas: 1
  selector:
    matchLabels:
      app: trips
  template:
    metadata:
      labels:
        app: trips
    spec:
      containers:
      - name: trips
        image: registryjrj5155/trips:latest
        env:
        - name: SQL_USER
          value: "sqladminjRj5155"
        - name: SQL_PASSWORD
          value: "<secure-password>"
        - name: SQL_SERVER
          value: "sqlserverjrj5155.database.windows.net"
        - name: SQL_DBNAME
          value: "mydrivingDB"
        - name: PORT
          value: "80"
        - name: OPENAPI_DOCS_URI
          value: "http://changeme"
        - name: DEBUG_LOGGING
          value: "false"
        - name: CONFIG_FILES_PATH
          value: "/secrets"
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
          limits:
            cpu: 250m
            memory: 256Mi
        ports:
        - containerPort: 80
          name: trips
