Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
```bash
docker-compose -f docker/docker-compose.yml run finagle-client
```
* The kubernetes manifests are created through kustomize by converting the docker-compose file
* The kubernetes manifests are created through kustomize by converting the docker-compose file. This will remove the `px-finagle` namespace, which must be updated manually.
```bash
cd docker
kompose convert
mv *.yaml ../kubernetes
cd kubernetes
kompose convert -f ../docker/docker-compose.yml
```
2 changes: 2 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ services:
command: client/run
finagle-server:
build: ../finagle-helloworld
ports:
- 9992:9992
1 change: 1 addition & 0 deletions kubernetes/finagle-client-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
labels:
io.kompose.service: finagle-client
name: finagle-client
namespace: px-finagle
spec:
replicas: 1
selector:
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/finagle-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
labels:
io.kompose.service: finagle-server
name: finagle-server
namespace: px-finagle
spec:
replicas: 1
selector:
Expand All @@ -26,6 +27,8 @@ spec:
containers:
- image: finagle-server
name: finagle-server
ports:
- containerPort: 9992
resources: {}
restartPolicy: Always
status: {}
20 changes: 20 additions & 0 deletions kubernetes/finagle-server-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f ../docker/docker-compose.yml
kompose.version: 1.26.1 (a9d05d509)
creationTimestamp: null
labels:
io.kompose.service: finagle-server
name: finagle-server
namespace: px-finagle
spec:
ports:
- name: "9992"
port: 9992
targetPort: 9992
selector:
io.kompose.service: finagle-server
status:
loadBalancer: {}
8 changes: 8 additions & 0 deletions kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- kubernetes/namespace.yaml
- kubernetes/finagle-client-deployment.yaml
- kubernetes/finagle-server-deployment.yaml
- kubernetes/finagle-server-service.yaml

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed adding this file in #1. But this allows the pixie repo to have a single k8s manifest file where all of these are concatenated.