aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/kubernetes/scheduler.yaml.in
blob: 0f17a4ca2469f7183ca424120d35ea31d0a782e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: dexcon-simulation-with-scheduler
  labels:
    app: dexcon-simulation-with-scheduler
spec:
  revisionHistoryLimit: 5
  replicas: 1
  template:
    metadata:
      name: dexcon-simulation-with-scheduler
      labels:
        app: dexcon-simulation-with-scheduler
    spec:
      nodeSelector:
        cloud.google.com/gke-nodepool: default-pool
      volumes:
        - name: ssl-certs
          hostPath:
            path: /etc/ssh/certs
      containers:
        - name: dexcon-simulation-with-scheduler
          image: asia.gcr.io/cobinhood/dexcon-simulation:latest
          imagePullPolicy: Always
          ports:
            - containerPort: 8080
          resources:
            requests:
              cpu: {{numCPUs}}
              memory: 4Gi
            limits:
              cpu: {{numCPUs}}
              memory: 4Gi
          env:
            - name: ROLE
              value: "scheduler"