From fbfaaf016129bd239f5f571bbc4fb5a3ad98283c Mon Sep 17 00:00:00 2001 From: sgayangi Date: Tue, 2 Apr 2024 17:18:37 +0530 Subject: [PATCH] Add sample backend to add to apk-docs --- .../tryout/samples/qsg-sample-backend.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 developer/tryout/samples/qsg-sample-backend.yaml diff --git a/developer/tryout/samples/qsg-sample-backend.yaml b/developer/tryout/samples/qsg-sample-backend.yaml new file mode 100644 index 000000000..7fe5c0eac --- /dev/null +++ b/developer/tryout/samples/qsg-sample-backend.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: Service +metadata: + name: employee-service +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: 80 + selector: + app: employee-app +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: employee-service-deployment +spec: + replicas: 1 + selector: + matchLabels: + app: employee-app + template: + metadata: + labels: + app: employee-app + spec: + containers: + - name: employee-service-container + image: sega1234/json-server-service:latest + ports: + - containerPort: 80