apiVersion: apps/v1

kind: Deployment
metadata:
  name: restfulci-auth-server
  namespace: auth
spec:
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      app: keycloak
  template:
    metadata:
      labels:
        app: keycloak
    spec:
      containers:
      - name: keycloak
        image: restfulci/auth-server-kubernetes:60644c34f3c6cb1ffa31b3ff45aeb36138afeb09
        ports:
        - containerPort: 8080
        env:
        - name: KEYCLOAK_USER
          value: restfulci
        - name: KEYCLOAK_PASSWORD
          value: secretpassword
        - name: DB_VENDOR
          value: POSTGRES
        - name: DB_ADDR
          value: restfulci-auth-postgres
        - name: DB_DATABASE
          value: keycloak
        - name: DB_USER
          value: postgres
        - name: DB_PASSWORD
          value: postgres
        resources:
          requests:
            cpu: 500m
