Can Kubernetes be used like Docker Compose?












52















I have been digging through the Kubernetes documentation for hours. I understand the core design, and the notion of services, controllers, pods, etc.



What I don't understand, however, is the process in which I can declaratively configure the cluster. That is, a way for me to write a config file (or a set thereof) to define the makeup, and scaling options of the cloud deployment. I want to be able to declare which containers I want in which pods, how they will communicate, how they will scale, etc. without running a ton of cli commands.



Is there docker-compose functionality for Kubernetes?



I want my application to be defined in git—to be version controlled–without relying on manual cli interactions.



Is this possible to do in a concise way? Is there a reference that is more clear than the official documentation?










share|improve this question





























    52















    I have been digging through the Kubernetes documentation for hours. I understand the core design, and the notion of services, controllers, pods, etc.



    What I don't understand, however, is the process in which I can declaratively configure the cluster. That is, a way for me to write a config file (or a set thereof) to define the makeup, and scaling options of the cloud deployment. I want to be able to declare which containers I want in which pods, how they will communicate, how they will scale, etc. without running a ton of cli commands.



    Is there docker-compose functionality for Kubernetes?



    I want my application to be defined in git—to be version controlled–without relying on manual cli interactions.



    Is this possible to do in a concise way? Is there a reference that is more clear than the official documentation?










    share|improve this question



























      52












      52








      52


      16






      I have been digging through the Kubernetes documentation for hours. I understand the core design, and the notion of services, controllers, pods, etc.



      What I don't understand, however, is the process in which I can declaratively configure the cluster. That is, a way for me to write a config file (or a set thereof) to define the makeup, and scaling options of the cloud deployment. I want to be able to declare which containers I want in which pods, how they will communicate, how they will scale, etc. without running a ton of cli commands.



      Is there docker-compose functionality for Kubernetes?



      I want my application to be defined in git—to be version controlled–without relying on manual cli interactions.



      Is this possible to do in a concise way? Is there a reference that is more clear than the official documentation?










      share|improve this question
















      I have been digging through the Kubernetes documentation for hours. I understand the core design, and the notion of services, controllers, pods, etc.



      What I don't understand, however, is the process in which I can declaratively configure the cluster. That is, a way for me to write a config file (or a set thereof) to define the makeup, and scaling options of the cloud deployment. I want to be able to declare which containers I want in which pods, how they will communicate, how they will scale, etc. without running a ton of cli commands.



      Is there docker-compose functionality for Kubernetes?



      I want my application to be defined in git—to be version controlled–without relying on manual cli interactions.



      Is this possible to do in a concise way? Is there a reference that is more clear than the official documentation?







      docker kubernetes docker-compose google-container-engine






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 16 '16 at 7:32









      halfer

      14.6k758114




      14.6k758114










      asked Jun 15 '16 at 21:02









      Don ScottDon Scott

      1,59611735




      1,59611735
























          4 Answers
          4






          active

          oldest

          votes


















          5














          Docker has officially announced the docker-compose functionality for the kubernetes cluster. So from now on you can compose the kubernetes resources in a file and apply them using that single file.



          First we need to install the Compose on Kubernetes controller into your Kubernetes cluster. This controller uses the standard Kubernetes extension points to introduce the Stack to the Kubernetes API. Check the full documentation to install the docker compose controller:




          https://github.com/docker/compose-on-kubernetes




          Let's write a simple compose yaml file:



          version: "3.7"
          services:
          web:
          image: dockerdemos/lab-web
          ports:
          - "33000:80"
          words:
          image: dockerdemos/lab-words
          deploy:
          replicas: 3
          endpoint_mode: dnsrr
          db:
          image: dockerdemos/lab-db


          We’ll then use the docker client to deploy this to a Kubernetes cluster running the controller:



          $ docker stack deploy --orchestrator=kubernetes -c docker-compose.yml words
          Waiting for the stack to be stable and running...
          db: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
          web: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
          words: Ready [pod status: 1/3 ready, 2/3 pending, 0/3 failed]
          Stack words is stable and running


          We can then interact with those objects via the Kubernetes API. Here you can see we’ve created the lower-level objects like Services, Pods, Deployments and ReplicaSets automatically:



          $ kubectl get deployments
          NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
          deployment.apps/db 1 1 1 1 57s
          deployment.apps/web 1 1 1 1 57s
          deployment.apps/words 3 3 3 3 57s


          It’s important to note that this isn’t a one-time conversion. The Compose on Kubernetes API Server introduces the Stack resource to the Kubernetes API. So we can query and manage everything at the same level of abstraction as we’re building the application. That makes delving into the details above useful for understanding how things work, or debugging issues, but not required most of the time:



          $ kubectl get stack
          NAME STATUS PUBLISHED PORTS PODS AGE
          words Running 33000 5/5 4m





          share|improve this answer































            31














            If you're still looking, maybe this tool can help: https://github.com/kelseyhightower/compose2kube



            You can create a compose file:



            # sample compose file with 3 services
            web:
            image: nginx
            ports:
            - "80"
            - "443"
            database:
            image: postgres
            ports:
            - "5432"
            cache:
            image: memcached
            ports:
            - "11211"


            Then use the tool to convert it to kubernetes objects:



            compose2kube -compose-file docker-compose.yml -output-dir output


            Which will create these files:



            output/cache-rc.yaml
            output/database-rc.yaml
            output/web-rc.yaml


            Then you can use kubectl to apply them to kubernetes.






            share|improve this answer





















            • 7





              Please don't add link only answers. Links can disappear.

              – Kurt Van den Branden
              Aug 18 '16 at 14:07






            • 5





              Hi Ahmad, and welcome to Stack Overflow. As @KurtVandenBranden says, link-only answers aren't great in themselves; it's important to include some context, for example quoting the important part of the linked article, to make it a useful answer even within this site. See How to Answer for more guidance.

              – Vince Bowdren
              Aug 19 '16 at 14:53



















            14














            If you have existing docker composer files, you may take a look at the Kompose project https://github.com/kubernetes/kompose.






            share|improve this answer

































              7














              Kubernetes certainly has its own yaml (as shown in "Deploying Applications")



              But as "Docker Clustering Tools Compared: Kubernetes vs Docker Swarm", it was not written (just) for Docker, and it has its own system.



              You could use docker-compose to start Kubernetes though, as shown in "vyshane/kid": that does mask some of the kubectl commands cli in scripts (which can be versioned).






              share|improve this answer


























              • for a managed deployment (i.e. Google's Container Service) I don't think docker-compose-kubernetes is applicable. (It's also a deprecated project.) I guess what I want to know is what a large organization does to manage deployments. Is there a kubernetes management package which I can feed configuration yaml to?

                – Don Scott
                Jun 16 '16 at 1:43











              • @DonScott Good point. I have updated the answer with the non-deprecated project.

                – VonC
                Jun 16 '16 at 7:31











              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37845715%2fcan-kubernetes-be-used-like-docker-compose%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              5














              Docker has officially announced the docker-compose functionality for the kubernetes cluster. So from now on you can compose the kubernetes resources in a file and apply them using that single file.



              First we need to install the Compose on Kubernetes controller into your Kubernetes cluster. This controller uses the standard Kubernetes extension points to introduce the Stack to the Kubernetes API. Check the full documentation to install the docker compose controller:




              https://github.com/docker/compose-on-kubernetes




              Let's write a simple compose yaml file:



              version: "3.7"
              services:
              web:
              image: dockerdemos/lab-web
              ports:
              - "33000:80"
              words:
              image: dockerdemos/lab-words
              deploy:
              replicas: 3
              endpoint_mode: dnsrr
              db:
              image: dockerdemos/lab-db


              We’ll then use the docker client to deploy this to a Kubernetes cluster running the controller:



              $ docker stack deploy --orchestrator=kubernetes -c docker-compose.yml words
              Waiting for the stack to be stable and running...
              db: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
              web: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
              words: Ready [pod status: 1/3 ready, 2/3 pending, 0/3 failed]
              Stack words is stable and running


              We can then interact with those objects via the Kubernetes API. Here you can see we’ve created the lower-level objects like Services, Pods, Deployments and ReplicaSets automatically:



              $ kubectl get deployments
              NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
              deployment.apps/db 1 1 1 1 57s
              deployment.apps/web 1 1 1 1 57s
              deployment.apps/words 3 3 3 3 57s


              It’s important to note that this isn’t a one-time conversion. The Compose on Kubernetes API Server introduces the Stack resource to the Kubernetes API. So we can query and manage everything at the same level of abstraction as we’re building the application. That makes delving into the details above useful for understanding how things work, or debugging issues, but not required most of the time:



              $ kubectl get stack
              NAME STATUS PUBLISHED PORTS PODS AGE
              words Running 33000 5/5 4m





              share|improve this answer




























                5














                Docker has officially announced the docker-compose functionality for the kubernetes cluster. So from now on you can compose the kubernetes resources in a file and apply them using that single file.



                First we need to install the Compose on Kubernetes controller into your Kubernetes cluster. This controller uses the standard Kubernetes extension points to introduce the Stack to the Kubernetes API. Check the full documentation to install the docker compose controller:




                https://github.com/docker/compose-on-kubernetes




                Let's write a simple compose yaml file:



                version: "3.7"
                services:
                web:
                image: dockerdemos/lab-web
                ports:
                - "33000:80"
                words:
                image: dockerdemos/lab-words
                deploy:
                replicas: 3
                endpoint_mode: dnsrr
                db:
                image: dockerdemos/lab-db


                We’ll then use the docker client to deploy this to a Kubernetes cluster running the controller:



                $ docker stack deploy --orchestrator=kubernetes -c docker-compose.yml words
                Waiting for the stack to be stable and running...
                db: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
                web: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
                words: Ready [pod status: 1/3 ready, 2/3 pending, 0/3 failed]
                Stack words is stable and running


                We can then interact with those objects via the Kubernetes API. Here you can see we’ve created the lower-level objects like Services, Pods, Deployments and ReplicaSets automatically:



                $ kubectl get deployments
                NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
                deployment.apps/db 1 1 1 1 57s
                deployment.apps/web 1 1 1 1 57s
                deployment.apps/words 3 3 3 3 57s


                It’s important to note that this isn’t a one-time conversion. The Compose on Kubernetes API Server introduces the Stack resource to the Kubernetes API. So we can query and manage everything at the same level of abstraction as we’re building the application. That makes delving into the details above useful for understanding how things work, or debugging issues, but not required most of the time:



                $ kubectl get stack
                NAME STATUS PUBLISHED PORTS PODS AGE
                words Running 33000 5/5 4m





                share|improve this answer


























                  5












                  5








                  5







                  Docker has officially announced the docker-compose functionality for the kubernetes cluster. So from now on you can compose the kubernetes resources in a file and apply them using that single file.



                  First we need to install the Compose on Kubernetes controller into your Kubernetes cluster. This controller uses the standard Kubernetes extension points to introduce the Stack to the Kubernetes API. Check the full documentation to install the docker compose controller:




                  https://github.com/docker/compose-on-kubernetes




                  Let's write a simple compose yaml file:



                  version: "3.7"
                  services:
                  web:
                  image: dockerdemos/lab-web
                  ports:
                  - "33000:80"
                  words:
                  image: dockerdemos/lab-words
                  deploy:
                  replicas: 3
                  endpoint_mode: dnsrr
                  db:
                  image: dockerdemos/lab-db


                  We’ll then use the docker client to deploy this to a Kubernetes cluster running the controller:



                  $ docker stack deploy --orchestrator=kubernetes -c docker-compose.yml words
                  Waiting for the stack to be stable and running...
                  db: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
                  web: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
                  words: Ready [pod status: 1/3 ready, 2/3 pending, 0/3 failed]
                  Stack words is stable and running


                  We can then interact with those objects via the Kubernetes API. Here you can see we’ve created the lower-level objects like Services, Pods, Deployments and ReplicaSets automatically:



                  $ kubectl get deployments
                  NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
                  deployment.apps/db 1 1 1 1 57s
                  deployment.apps/web 1 1 1 1 57s
                  deployment.apps/words 3 3 3 3 57s


                  It’s important to note that this isn’t a one-time conversion. The Compose on Kubernetes API Server introduces the Stack resource to the Kubernetes API. So we can query and manage everything at the same level of abstraction as we’re building the application. That makes delving into the details above useful for understanding how things work, or debugging issues, but not required most of the time:



                  $ kubectl get stack
                  NAME STATUS PUBLISHED PORTS PODS AGE
                  words Running 33000 5/5 4m





                  share|improve this answer













                  Docker has officially announced the docker-compose functionality for the kubernetes cluster. So from now on you can compose the kubernetes resources in a file and apply them using that single file.



                  First we need to install the Compose on Kubernetes controller into your Kubernetes cluster. This controller uses the standard Kubernetes extension points to introduce the Stack to the Kubernetes API. Check the full documentation to install the docker compose controller:




                  https://github.com/docker/compose-on-kubernetes




                  Let's write a simple compose yaml file:



                  version: "3.7"
                  services:
                  web:
                  image: dockerdemos/lab-web
                  ports:
                  - "33000:80"
                  words:
                  image: dockerdemos/lab-words
                  deploy:
                  replicas: 3
                  endpoint_mode: dnsrr
                  db:
                  image: dockerdemos/lab-db


                  We’ll then use the docker client to deploy this to a Kubernetes cluster running the controller:



                  $ docker stack deploy --orchestrator=kubernetes -c docker-compose.yml words
                  Waiting for the stack to be stable and running...
                  db: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
                  web: Ready [pod status: 1/1 ready, 0/1 pending, 0/1 failed]
                  words: Ready [pod status: 1/3 ready, 2/3 pending, 0/3 failed]
                  Stack words is stable and running


                  We can then interact with those objects via the Kubernetes API. Here you can see we’ve created the lower-level objects like Services, Pods, Deployments and ReplicaSets automatically:



                  $ kubectl get deployments
                  NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
                  deployment.apps/db 1 1 1 1 57s
                  deployment.apps/web 1 1 1 1 57s
                  deployment.apps/words 3 3 3 3 57s


                  It’s important to note that this isn’t a one-time conversion. The Compose on Kubernetes API Server introduces the Stack resource to the Kubernetes API. So we can query and manage everything at the same level of abstraction as we’re building the application. That makes delving into the details above useful for understanding how things work, or debugging issues, but not required most of the time:



                  $ kubectl get stack
                  NAME STATUS PUBLISHED PORTS PODS AGE
                  words Running 33000 5/5 4m






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 1 at 6:49









                  Prafull LadhaPrafull Ladha

                  3,6481523




                  3,6481523

























                      31














                      If you're still looking, maybe this tool can help: https://github.com/kelseyhightower/compose2kube



                      You can create a compose file:



                      # sample compose file with 3 services
                      web:
                      image: nginx
                      ports:
                      - "80"
                      - "443"
                      database:
                      image: postgres
                      ports:
                      - "5432"
                      cache:
                      image: memcached
                      ports:
                      - "11211"


                      Then use the tool to convert it to kubernetes objects:



                      compose2kube -compose-file docker-compose.yml -output-dir output


                      Which will create these files:



                      output/cache-rc.yaml
                      output/database-rc.yaml
                      output/web-rc.yaml


                      Then you can use kubectl to apply them to kubernetes.






                      share|improve this answer





















                      • 7





                        Please don't add link only answers. Links can disappear.

                        – Kurt Van den Branden
                        Aug 18 '16 at 14:07






                      • 5





                        Hi Ahmad, and welcome to Stack Overflow. As @KurtVandenBranden says, link-only answers aren't great in themselves; it's important to include some context, for example quoting the important part of the linked article, to make it a useful answer even within this site. See How to Answer for more guidance.

                        – Vince Bowdren
                        Aug 19 '16 at 14:53
















                      31














                      If you're still looking, maybe this tool can help: https://github.com/kelseyhightower/compose2kube



                      You can create a compose file:



                      # sample compose file with 3 services
                      web:
                      image: nginx
                      ports:
                      - "80"
                      - "443"
                      database:
                      image: postgres
                      ports:
                      - "5432"
                      cache:
                      image: memcached
                      ports:
                      - "11211"


                      Then use the tool to convert it to kubernetes objects:



                      compose2kube -compose-file docker-compose.yml -output-dir output


                      Which will create these files:



                      output/cache-rc.yaml
                      output/database-rc.yaml
                      output/web-rc.yaml


                      Then you can use kubectl to apply them to kubernetes.






                      share|improve this answer





















                      • 7





                        Please don't add link only answers. Links can disappear.

                        – Kurt Van den Branden
                        Aug 18 '16 at 14:07






                      • 5





                        Hi Ahmad, and welcome to Stack Overflow. As @KurtVandenBranden says, link-only answers aren't great in themselves; it's important to include some context, for example quoting the important part of the linked article, to make it a useful answer even within this site. See How to Answer for more guidance.

                        – Vince Bowdren
                        Aug 19 '16 at 14:53














                      31












                      31








                      31







                      If you're still looking, maybe this tool can help: https://github.com/kelseyhightower/compose2kube



                      You can create a compose file:



                      # sample compose file with 3 services
                      web:
                      image: nginx
                      ports:
                      - "80"
                      - "443"
                      database:
                      image: postgres
                      ports:
                      - "5432"
                      cache:
                      image: memcached
                      ports:
                      - "11211"


                      Then use the tool to convert it to kubernetes objects:



                      compose2kube -compose-file docker-compose.yml -output-dir output


                      Which will create these files:



                      output/cache-rc.yaml
                      output/database-rc.yaml
                      output/web-rc.yaml


                      Then you can use kubectl to apply them to kubernetes.






                      share|improve this answer















                      If you're still looking, maybe this tool can help: https://github.com/kelseyhightower/compose2kube



                      You can create a compose file:



                      # sample compose file with 3 services
                      web:
                      image: nginx
                      ports:
                      - "80"
                      - "443"
                      database:
                      image: postgres
                      ports:
                      - "5432"
                      cache:
                      image: memcached
                      ports:
                      - "11211"


                      Then use the tool to convert it to kubernetes objects:



                      compose2kube -compose-file docker-compose.yml -output-dir output


                      Which will create these files:



                      output/cache-rc.yaml
                      output/database-rc.yaml
                      output/web-rc.yaml


                      Then you can use kubectl to apply them to kubernetes.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jan 2 '18 at 22:06









                      Riccardo

                      684618




                      684618










                      answered Aug 18 '16 at 14:00









                      Ahmad AabedAhmad Aabed

                      42144




                      42144








                      • 7





                        Please don't add link only answers. Links can disappear.

                        – Kurt Van den Branden
                        Aug 18 '16 at 14:07






                      • 5





                        Hi Ahmad, and welcome to Stack Overflow. As @KurtVandenBranden says, link-only answers aren't great in themselves; it's important to include some context, for example quoting the important part of the linked article, to make it a useful answer even within this site. See How to Answer for more guidance.

                        – Vince Bowdren
                        Aug 19 '16 at 14:53














                      • 7





                        Please don't add link only answers. Links can disappear.

                        – Kurt Van den Branden
                        Aug 18 '16 at 14:07






                      • 5





                        Hi Ahmad, and welcome to Stack Overflow. As @KurtVandenBranden says, link-only answers aren't great in themselves; it's important to include some context, for example quoting the important part of the linked article, to make it a useful answer even within this site. See How to Answer for more guidance.

                        – Vince Bowdren
                        Aug 19 '16 at 14:53








                      7




                      7





                      Please don't add link only answers. Links can disappear.

                      – Kurt Van den Branden
                      Aug 18 '16 at 14:07





                      Please don't add link only answers. Links can disappear.

                      – Kurt Van den Branden
                      Aug 18 '16 at 14:07




                      5




                      5





                      Hi Ahmad, and welcome to Stack Overflow. As @KurtVandenBranden says, link-only answers aren't great in themselves; it's important to include some context, for example quoting the important part of the linked article, to make it a useful answer even within this site. See How to Answer for more guidance.

                      – Vince Bowdren
                      Aug 19 '16 at 14:53





                      Hi Ahmad, and welcome to Stack Overflow. As @KurtVandenBranden says, link-only answers aren't great in themselves; it's important to include some context, for example quoting the important part of the linked article, to make it a useful answer even within this site. See How to Answer for more guidance.

                      – Vince Bowdren
                      Aug 19 '16 at 14:53











                      14














                      If you have existing docker composer files, you may take a look at the Kompose project https://github.com/kubernetes/kompose.






                      share|improve this answer






























                        14














                        If you have existing docker composer files, you may take a look at the Kompose project https://github.com/kubernetes/kompose.






                        share|improve this answer




























                          14












                          14








                          14







                          If you have existing docker composer files, you may take a look at the Kompose project https://github.com/kubernetes/kompose.






                          share|improve this answer















                          If you have existing docker composer files, you may take a look at the Kompose project https://github.com/kubernetes/kompose.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Mar 14 '18 at 18:36









                          Krzysztof Kot

                          545814




                          545814










                          answered Nov 4 '16 at 10:21









                          JoaoCCJoaoCC

                          387210




                          387210























                              7














                              Kubernetes certainly has its own yaml (as shown in "Deploying Applications")



                              But as "Docker Clustering Tools Compared: Kubernetes vs Docker Swarm", it was not written (just) for Docker, and it has its own system.



                              You could use docker-compose to start Kubernetes though, as shown in "vyshane/kid": that does mask some of the kubectl commands cli in scripts (which can be versioned).






                              share|improve this answer


























                              • for a managed deployment (i.e. Google's Container Service) I don't think docker-compose-kubernetes is applicable. (It's also a deprecated project.) I guess what I want to know is what a large organization does to manage deployments. Is there a kubernetes management package which I can feed configuration yaml to?

                                – Don Scott
                                Jun 16 '16 at 1:43











                              • @DonScott Good point. I have updated the answer with the non-deprecated project.

                                – VonC
                                Jun 16 '16 at 7:31
















                              7














                              Kubernetes certainly has its own yaml (as shown in "Deploying Applications")



                              But as "Docker Clustering Tools Compared: Kubernetes vs Docker Swarm", it was not written (just) for Docker, and it has its own system.



                              You could use docker-compose to start Kubernetes though, as shown in "vyshane/kid": that does mask some of the kubectl commands cli in scripts (which can be versioned).






                              share|improve this answer


























                              • for a managed deployment (i.e. Google's Container Service) I don't think docker-compose-kubernetes is applicable. (It's also a deprecated project.) I guess what I want to know is what a large organization does to manage deployments. Is there a kubernetes management package which I can feed configuration yaml to?

                                – Don Scott
                                Jun 16 '16 at 1:43











                              • @DonScott Good point. I have updated the answer with the non-deprecated project.

                                – VonC
                                Jun 16 '16 at 7:31














                              7












                              7








                              7







                              Kubernetes certainly has its own yaml (as shown in "Deploying Applications")



                              But as "Docker Clustering Tools Compared: Kubernetes vs Docker Swarm", it was not written (just) for Docker, and it has its own system.



                              You could use docker-compose to start Kubernetes though, as shown in "vyshane/kid": that does mask some of the kubectl commands cli in scripts (which can be versioned).






                              share|improve this answer















                              Kubernetes certainly has its own yaml (as shown in "Deploying Applications")



                              But as "Docker Clustering Tools Compared: Kubernetes vs Docker Swarm", it was not written (just) for Docker, and it has its own system.



                              You could use docker-compose to start Kubernetes though, as shown in "vyshane/kid": that does mask some of the kubectl commands cli in scripts (which can be versioned).







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Jun 16 '16 at 7:30

























                              answered Jun 15 '16 at 21:54









                              VonCVonC

                              845k29426813236




                              845k29426813236













                              • for a managed deployment (i.e. Google's Container Service) I don't think docker-compose-kubernetes is applicable. (It's also a deprecated project.) I guess what I want to know is what a large organization does to manage deployments. Is there a kubernetes management package which I can feed configuration yaml to?

                                – Don Scott
                                Jun 16 '16 at 1:43











                              • @DonScott Good point. I have updated the answer with the non-deprecated project.

                                – VonC
                                Jun 16 '16 at 7:31



















                              • for a managed deployment (i.e. Google's Container Service) I don't think docker-compose-kubernetes is applicable. (It's also a deprecated project.) I guess what I want to know is what a large organization does to manage deployments. Is there a kubernetes management package which I can feed configuration yaml to?

                                – Don Scott
                                Jun 16 '16 at 1:43











                              • @DonScott Good point. I have updated the answer with the non-deprecated project.

                                – VonC
                                Jun 16 '16 at 7:31

















                              for a managed deployment (i.e. Google's Container Service) I don't think docker-compose-kubernetes is applicable. (It's also a deprecated project.) I guess what I want to know is what a large organization does to manage deployments. Is there a kubernetes management package which I can feed configuration yaml to?

                              – Don Scott
                              Jun 16 '16 at 1:43





                              for a managed deployment (i.e. Google's Container Service) I don't think docker-compose-kubernetes is applicable. (It's also a deprecated project.) I guess what I want to know is what a large organization does to manage deployments. Is there a kubernetes management package which I can feed configuration yaml to?

                              – Don Scott
                              Jun 16 '16 at 1:43













                              @DonScott Good point. I have updated the answer with the non-deprecated project.

                              – VonC
                              Jun 16 '16 at 7:31





                              @DonScott Good point. I have updated the answer with the non-deprecated project.

                              – VonC
                              Jun 16 '16 at 7:31


















                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f37845715%2fcan-kubernetes-be-used-like-docker-compose%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              MongoDB - Not Authorized To Execute Command

                              How to fix TextFormField cause rebuild widget in Flutter

                              in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith