From 636ee6967b79f790659ca4241d45385867cce958 Mon Sep 17 00:00:00 2001 From: Dede Fuji Abdul Date: Mon, 15 Jan 2024 13:57:28 +0700 Subject: [PATCH] Update deployment and service configuration --- deployment.yaml | 48 +++++++++++++++--------------------------------- 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/deployment.yaml b/deployment.yaml index db6306f..a8b20cf 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -1,37 +1,19 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: apkt-eis + name: my-vue-app spec: - progressDeadlineSeconds: 600 - replicas: 3 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: apkt-eis - strategy: - rollingUpdate: - maxSurge: 0 - maxUnavailable: 100% - type: RollingUpdate ---- -apiVersion: v1 -kind: Service -metadata: - name: apkt-eis -spec: - internalTrafficPolicy: Cluster - ipFamilies: - - IPv4 - ipFamilyPolicy: SingleStack - ports: - - name: port-0 - port: 32166 - protocol: TCP - targetPort: 80 - selector: - app: apkt-eis - sessionAffinity: None - type: ClusterIP -status: - loadBalancer: {} + replicas: 3 + selector: + matchLabels: + app: my-vue-app + template: + metadata: + labels: + app: my-vue-app + spec: + containers: + - name: apkt-eis + image: defuj/apkt-eis:latest + ports: + - containerPort: 32166 \ No newline at end of file