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

Compare with Current View Page History

« Previous Version 4 Next »

Converting

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


Pulling image from Docker Registry


Create a Secret in the cluster that holds your authorization token

> kubectl create secret docker-registry regcred --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword> --docker-email=<your-email>


kubectl create secret docker-registry regcred --docker-server=http://localhost:5000/ --docker-username=username --docker-password=password --docker-email=john.mehan@irdeto.com
secret/regcred created




References




  • No labels