diff --git a/README.md b/README.md index dcb66d4..1b17362 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,4 @@ You can run the app with: ./gradlew npm_start Once it is running, you can access it in a browser at http://localhost:8080 +Be sure to have your SSH key set up and that your public key (located in ~/.ssh/id_rsa.pub) is added to your GitHub account. diff --git a/train-schedule-kube.yml b/train-schedule-kube.yml index d98d3c4..5899028 100644 --- a/train-schedule-kube.yml +++ b/train-schedule-kube.yml @@ -41,3 +41,26 @@ spec: initialDelaySeconds: 15 timeoutSeconds: 1 periodSeconds: 10 + resources: + requests: + cpu: 200m + +--- + +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: train-schedule + namespace: default +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: train-schedule-deployment + minReplicas: 1 + maxReplicas: 4 + metrics: + - type: Resource + resource: + name: cpu + targetAverageUtilization: 50