apiVersion: apps/v1
kind: Deployment
metadata:
  name: ga-chp-deployment
  labels:
    run: ga-chp
  namespace: default
spec:
  replicas: 5
  selector:
    matchLabels:
      run: ga-chp
  template:
    metadata:
      labels:
        run: ga-chp
    spec:
      containers:
      - name: ga-chp
        image: pythoncontainer
        command: ["bash", "/opt/ga_chp/prediction/model_serving/runmodelservingendpoint.sh"]
        imagePullPolicy: Never
        ports:
        - containerPort: 6868
          protocol: TCP
        envFrom:
        - configMapRef:
            name: environment-configmap
        volumeMounts:
        - name: opt-ga-chp
          mountPath: /opt/ga_chp
      volumes:
        - name: opt-ga-chp
          hostPath:
            path: /opt/ga_chp

