diff --git a/k8s/gin-config.yml b/k8s/gin-config.yml new file mode 100644 index 0000000..8a595e3 --- /dev/null +++ b/k8s/gin-config.yml @@ -0,0 +1,36 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: ginserver-deployment + labels: + app: ginserver +spec: + replicas: 1 + selector: + matchLabels: + app: ginserver + template: + metadata: + labels: + app: ginserver + spec: + containers: + - name: ginserver + image: fatmaebrahim/ginserver:latest + ports: + - containerPort: 8080 + +--- +apiVersion: v1 +kind: Service +metadata: + name: ginserver-service +spec: + type: NodePort + selector: + app: ginserver + ports: + - protocol: TCP + port: 8080 + targetPort: 8080 + nodePort: 30000 diff --git a/k8s/http-config.yml b/k8s/http-config.yml new file mode 100644 index 0000000..51f9fc8 --- /dev/null +++ b/k8s/http-config.yml @@ -0,0 +1,36 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: httpserver-deployment + labels: + app: httpserver +spec: + replicas: 1 + selector: + matchLabels: + app: httpserver + template: + metadata: + labels: + app: httpserver + spec: + containers: + - name: httpserver + image: fatmaebrahim/httpserver:latest + ports: + - containerPort: 8000 + +--- +apiVersion: v1 +kind: Service +metadata: + name: httpserver-service +spec: + type: NodePort + selector: + app: httpserver + ports: + - protocol: TCP + port: 8000 + targetPort: 8000 + nodePort: 30100