diff --git a/fib-go/deploy.yaml b/fib-go/deploy.yaml new file mode 100644 index 0000000..9e95dcf --- /dev/null +++ b/fib-go/deploy.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: fib-go +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: fib-go + template: + metadata: + labels: + app.kubernetes.io/instance: fib-go + spec: + containers: + - image: quay.io/jduimovich0/fib-go + imagePullPolicy: Always + name: container-image + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/fib-go/devfile.yaml b/fib-go/devfile.yaml index 74903db..5dd67fb 100644 --- a/fib-go/devfile.yaml +++ b/fib-go/devfile.yaml @@ -13,7 +13,32 @@ components: uri: fib-go/Dockerfile buildContext: . rootRequired: false + - name: kubernetes-deploy + attributes: + deployment/replicas: 1 + deployment/cpuLimit: '100m' + deployment/cpuRequest: 10m + deployment/memoryLimit: 100Mi + deployment/memoryRequest: 50Mi + deployment/container-port: 8080 + kubernetes: + uri: deploy.yaml + endpoints: + - name: http-8080 + targetPort: 8080 + path: / commands: - id: build-image apply: - component: outerloop-build \ No newline at end of file + component: outerloop-build + - id: deployk8s + apply: + component: kubernetes-deploy + - id: deploy + composite: + commands: + - build-image + - deployk8s + group: + kind: deploy + isDefault: true \ No newline at end of file diff --git a/fib-node/deploy.yaml b/fib-node/deploy.yaml new file mode 100644 index 0000000..39d4b2a --- /dev/null +++ b/fib-node/deploy.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: fib-node +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: fib-node + template: + metadata: + labels: + app.kubernetes.io/instance: fib-node + spec: + containers: + - image: quay.io/jduimovich0/fib-node + imagePullPolicy: Always + name: container-image + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/fib-node/devfile.yaml b/fib-node/devfile.yaml index 530fc46..86730f1 100644 --- a/fib-node/devfile.yaml +++ b/fib-node/devfile.yaml @@ -13,7 +13,32 @@ components: uri: fib-node/Dockerfile buildContext: . rootRequired: false + - name: kubernetes-deploy + attributes: + deployment/replicas: 1 + deployment/cpuLimit: '100m' + deployment/cpuRequest: 10m + deployment/memoryLimit: 100Mi + deployment/memoryRequest: 50Mi + deployment/container-port: 8080 + kubernetes: + uri: deploy.yaml + endpoints: + - name: http-8080 + targetPort: 8080 + path: / commands: - id: build-image apply: - component: outerloop-build \ No newline at end of file + component: outerloop-build + - id: deployk8s + apply: + component: kubernetes-deploy + - id: deploy + composite: + commands: + - build-image + - deployk8s + group: + kind: deploy + isDefault: true \ No newline at end of file diff --git a/frontend/deploy.yaml b/frontend/deploy.yaml new file mode 100644 index 0000000..293a1ab --- /dev/null +++ b/frontend/deploy.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: frontend +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: frontend + template: + metadata: + labels: + app.kubernetes.io/instance: frontend + spec: + containers: + - image: quay.io/jduimovich0/frontend + imagePullPolicy: Always + name: container-image + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/frontend/devfile.yaml b/frontend/devfile.yaml index ca5a487..10a9096 100644 --- a/frontend/devfile.yaml +++ b/frontend/devfile.yaml @@ -13,7 +13,32 @@ components: uri: frontend/Dockerfile buildContext: . rootRequired: false + - name: kubernetes-deploy + attributes: + deployment/replicas: 1 + deployment/cpuLimit: '100m' + deployment/cpuRequest: 10m + deployment/memoryLimit: 100Mi + deployment/memoryRequest: 50Mi + deployment/container-port: 8080 + kubernetes: + uri: deploy.yaml + endpoints: + - name: http-8080 + targetPort: 8080 + path: / commands: - id: build-image apply: - component: outerloop-build \ No newline at end of file + component: outerloop-build + - id: deployk8s + apply: + component: kubernetes-deploy + - id: deploy + composite: + commands: + - build-image + - deployk8s + group: + kind: deploy + isDefault: true \ No newline at end of file diff --git a/haproxy/deploy.yaml b/haproxy/deploy.yaml new file mode 100644 index 0000000..62c6a32 --- /dev/null +++ b/haproxy/deploy.yaml @@ -0,0 +1,20 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: haproxy +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: haproxy + template: + metadata: + labels: + app.kubernetes.io/instance: haproxy + spec: + containers: + - image: quay.io/jduimovich0/haproxy + imagePullPolicy: Always + name: container-image + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/haproxy/devfile.yaml b/haproxy/devfile.yaml index 2f9cca0..e035960 100644 --- a/haproxy/devfile.yaml +++ b/haproxy/devfile.yaml @@ -13,7 +13,32 @@ components: uri: haproxy/Dockerfile buildContext: . rootRequired: false + - name: kubernetes-deploy + attributes: + deployment/replicas: 1 + deployment/cpuLimit: '100m' + deployment/cpuRequest: 10m + deployment/memoryLimit: 100Mi + deployment/memoryRequest: 50Mi + deployment/container-port: 8080 + kubernetes: + uri: deploy.yaml + endpoints: + - name: http-8080 + targetPort: 8080 + path: / commands: - id: build-image apply: - component: outerloop-build \ No newline at end of file + component: outerloop-build + - id: deployk8s + apply: + component: kubernetes-deploy + - id: deploy + composite: + commands: + - build-image + - deployk8s + group: + kind: deploy + isDefault: true \ No newline at end of file