From 55715f8fb87024bea1decd43a9541a1854d6e4cf Mon Sep 17 00:00:00 2001 From: Hamza Khalid Date: Wed, 5 Jan 2022 00:53:02 -0800 Subject: [PATCH] Update train-schedule-kube.yml --- train-schedule-kube.yml | 47 ----------------------------------------- 1 file changed, 47 deletions(-) diff --git a/train-schedule-kube.yml b/train-schedule-kube.yml index 539f8e28..8b137891 100644 --- a/train-schedule-kube.yml +++ b/train-schedule-kube.yml @@ -1,48 +1 @@ -kind: Service -apiVersion: v1 -metadata: - name: train-schedule-service -spec: - type: NodePort - selector: - app: train-schedule - ports: - - protocol: TCP - port: 8080 - nodePort: 8080 ---- - -apiVersion: apps/v1 -kind: Deployment -metadata: - name: train-schedule-deployment - labels: - app: train-schedule -spec: - replicas: 2 - selector: - matchLabels: - app: train-schedule - track: stable - template: - metadata: - labels: - app: train-schedule - track: stable - spec: - containers: - - name: train-schedule - image: $DOCKER_IMAGE_NAME:$BUILD_NUMBER - ports: - - containerPort: 8080 - livenessProbe: - httpGet: - path: / - port: 8080 - initialDelaySeconds: 15 - timeoutSeconds: 1 - periodSeconds: 10 - resources: - requests: - cpu: 200m