diff --git a/outerloop-deploy.yaml b/deploy.yaml similarity index 73% rename from outerloop-deploy.yaml rename to deploy.yaml index 3869c483..208850ef 100644 --- a/outerloop-deploy.yaml +++ b/deploy.yaml @@ -23,3 +23,16 @@ spec: limits: memory: "1024Mi" cpu: "500m" +--- +kind: Service +apiVersion: v1 +metadata: + name: my-go-svc +spec: +ports: + - name: http-8081 + port: 8081 + protocol: TCP + targetPort: 8081 +selector: + app: go-app \ No newline at end of file diff --git a/devfile.yaml b/devfile.yaml index b712899a..ae1072ee 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -8,7 +8,7 @@ metadata: projectType: Go tags: - Go - version: 1.0.1 + version: 1.1.0 provider: Red Hat supportUrl: https://github.com/devfile-samples/devfile-support#support-information attributes: @@ -17,14 +17,14 @@ parent: id: go registryUrl: 'https://registry.devfile.io' components: - - name: outerloop-build + - name: image-build image: imageName: go-image:latest dockerfile: uri: docker/Dockerfile buildContext: . rootRequired: false - - name: outerloop-deploy + - name: kubernetes-deploy attributes: deployment/replicas: 1 deployment/cpuLimit: '100m' @@ -33,14 +33,18 @@ components: deployment/memoryRequest: 10Mi deployment/container-port: 8081 kubernetes: - uri: outerloop-deploy.yaml + uri: deploy.yaml + endpoints: + - name: http-8081 + targetPort: 8081 + path: / commands: - id: build-image apply: - component: outerloop-build + component: image-build - id: deployk8s apply: - component: outerloop-deploy + component: kubernetes-deploy - id: deploy composite: commands: