
# Source: exochart/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: exoplanets-exochart
  labels:
    helm.sh/chart: exochart-0.1.0
    app.kubernetes.io/name: exochart
    app.kubernetes.io/instance: exoplanets
    app.kubernetes.io/version: "1.16.0"
    app.kubernetes.io/managed-by: Helm
spec:
  replicas: 5
  selector:
    matchLabels:
      app.kubernetes.io/name: exochart
      app.kubernetes.io/instance: exoplanets
  template:
    metadata:
      labels:
        app.kubernetes.io/name: exochart
        app.kubernetes.io/instance: exoplanets
    spec:
      serviceAccountName: exoplanets-exochart
      securityContext:
        {}
      containers:
        - name: exochart
          securityContext:
            {}
          image: "quay.io/redhattraining/exoplanets:v1.0"
          imagePullPolicy: IfNotPresent
          env:
           - name: "DB_HOST"
             value: "exoplanets-cockroachdb"
           - name: "DB_PORT"
             value: "26257"
           - name: "DB_USER"
             value: "root"
           - name: "DB_NAME"
             value: "postgres"      
          ports:
            - name: http
              containerPort: 8080
              protocol: TCP
          livenessProbe:
            httpGet:
              path: /
              port: http
          readinessProbe:
            httpGet:
              path: /
              port: http
          resources:
               limits:   
                 memory: "128Mi"
                 cpu: "250m"

