Skip to content

Instantly share code, notes, and snippets.

@lucj
Created June 29, 2021 12:51
Show Gist options
  • Save lucj/a75b29e671f84b4a1e8da5f7dbc9c0b6 to your computer and use it in GitHub Desktop.
Save lucj/a75b29e671f84b4a1e8da5f7dbc9c0b6 to your computer and use it in GitHub Desktop.
"docker compose convert" for the kube backend
README.md
---------
This chart was created by converting a Compose file
Chart.yaml
----------
name: vote
description: A generated Helm Chart for vote from Skippbox Kompose
version: 0.0.1
apiVersion: v1
keywords:
- vote
sources:
home:
templates/result-deployment.yaml
--------------------------------
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: result
name: result
spec:
replicas: 1
selector:
matchLabels:
com.docker.compose.project: vote
com.docker.compose.service: result
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: result
spec:
containers:
- image: registry.gitlab.com/voting-application/result:v3
name: result
resources: {}
restartPolicy: Always
status: {}
templates/result-ui-service.yaml
--------------------------------
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: result-ui
spec:
ports:
- name: 5001-tcp
port: 5001
protocol: TCP
targetPort: 80
selector:
com.docker.compose.project: vote
com.docker.compose.service: result-ui
type: LoadBalancer
status:
loadBalancer: {}
templates/vote-service.yaml
---------------------------
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: vote
spec:
clusterIP: None
selector:
com.docker.compose.project: vote
com.docker.compose.service: vote
type: ClusterIP
status:
loadBalancer: {}
templates/vote-ui-service.yaml
------------------------------
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: vote-ui
spec:
ports:
- name: 5000-tcp
port: 5000
protocol: TCP
targetPort: 80
selector:
com.docker.compose.project: vote
com.docker.compose.service: vote-ui
type: LoadBalancer
status:
loadBalancer: {}
templates/result-service.yaml
-----------------------------
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: result
spec:
clusterIP: None
selector:
com.docker.compose.project: vote
com.docker.compose.service: result
type: ClusterIP
status:
loadBalancer: {}
templates/result-ui-deployment.yaml
-----------------------------------
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: result-ui
name: result-ui
spec:
replicas: 1
selector:
matchLabels:
com.docker.compose.project: vote
com.docker.compose.service: result-ui
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: result-ui
spec:
containers:
- image: registry.gitlab.com/voting-application/result-ui
name: result-ui
ports:
- containerPort: 80
protocol: TCP
resources: {}
restartPolicy: Always
status: {}
templates/nats-service.yaml
---------------------------
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
name: nats
spec:
clusterIP: None
selector:
com.docker.compose.project: vote
com.docker.compose.service: nats
type: ClusterIP
status:
loadBalancer: {}
templates/nats-deployment.yaml
------------------------------
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: nats
name: nats
spec:
replicas: 1
selector:
matchLabels:
com.docker.compose.project: vote
com.docker.compose.service: nats
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: nats
spec:
containers:
- image: nats:2.2-alpine3.13
name: nats
resources: {}
restartPolicy: Always
status: {}
templates/vote-deployment.yaml
------------------------------
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: vote
name: vote
spec:
replicas: 1
selector:
matchLabels:
com.docker.compose.project: vote
com.docker.compose.service: vote
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: vote
spec:
containers:
- image: registry.gitlab.com/voting-application/vote:v3
name: vote
resources: {}
restartPolicy: Always
status: {}
templates/vote-ui-deployment.yaml
---------------------------------
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: vote-ui
name: vote-ui
spec:
replicas: 1
selector:
matchLabels:
com.docker.compose.project: vote
com.docker.compose.service: vote-ui
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
com.docker.compose.project: vote
com.docker.compose.service: vote-ui
spec:
containers:
- image: registry.gitlab.com/voting-application/vote-ui
name: vote-ui
ports:
- containerPort: 80
protocol: TCP
resources: {}
restartPolicy: Always
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment