Created
February 27, 2021 00:03
-
-
Save xsqian/ac84d7eb1b5957b20df70d7c74de3484 to your computer and use it in GitHub Desktop.
kompose convert docker-compose to kubernetes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 launch.sh | |
2 curl -L https://github.com/kubernetes/kompose/releases/download/v1.9.0/kompose-linux-amd64 -o /usr/bin/kompose && chmod +x /usr/bin/kompose | |
3 kompose up | |
4 kubectl get deployment,svc,pods,pvc | |
5 kompose convert | |
6 ls | |
7 kubectl apply -f frontend-service.yaml,redis-master-service.yaml,redis-slave-service.yaml,frontend-deployment.yaml,redis-master-deployment.yaml,redis-slave-deployment.yaml | |
8 kompose --provider openshift convert | |
9 kompose convert -j | |
10 ls -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment