You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Install kompose

> brew install kompose


Start up directly

> kompose up


Export docker-compose 

> kompose convert


$ kompose convert
WARN Volume mount on the host "/Users/john.mehan/projects/cloud/deployment/is-config/IND" isn't supported - ignoring path on the host 
INFO Kubernetes file "cloudservice-service.yaml" created 
INFO Kubernetes file "isservice-service.yaml" created 
INFO Kubernetes file "postgres-service.yaml" created 
INFO Kubernetes file "redis-service.yaml" created 
INFO Kubernetes file "cloudservice-deployment.yaml" created 
INFO Kubernetes file "isservice-deployment.yaml" created 
INFO Kubernetes file "isservice-claim0-persistentvolumeclaim.yaml" created 
INFO Kubernetes file "postgres-deployment.yaml" created 
INFO Kubernetes file "db-volume-persistentvolumeclaim.yaml" created 
INFO Kubernetes file "redis-deployment.yaml" created 


Create Kubectl


Might have to have minikube up and running for this to work

> minikube start


$ minikube start


$ kubectl create -f cloudservice-service.yaml,isservice-service.yaml,postgres-service.yaml,redis-service.yaml,cloudservice-deployment.yaml,isservice-deployment.yaml,isservice-claim0-persistentvolumeclaim.yaml,postgres-deployment.yaml,db-volume-persistentvolumeclaim.yaml,redis-deployment.yaml 

service/cloudservice created
service/isservice created
service/postgres created
service/redis created
deployment.extensions/cloudservice created
deployment.extensions/isservice created
persistentvolumeclaim/isservice-claim0 created
deployment.extensions/postgres created
persistentvolumeclaim/db-volume created
deployment.extensions/redis created



References




  • No labels