This may be a stupid question but can juju work on a kubernetes cluster that was created and deployed outside...












1















I'm asking because I have been trying to get some monitoring and log aggregation to work and when I do the juju side of install to an already existing kubernetes cluster it has a status of waiting and all documentation I can find has instructions on deploying kubernetes via juju. Its like the juju controller can't see a externally created kubernetes cluster.....is this behaviour expected and I'm just unfamiliar or is there some sort of juju component needed to communicate with the external kubernetes cluster that will allow the jujucharm to get out of the status of waiting and never loking like it communicate with anything outside of its environment.










share|improve this question



























    1















    I'm asking because I have been trying to get some monitoring and log aggregation to work and when I do the juju side of install to an already existing kubernetes cluster it has a status of waiting and all documentation I can find has instructions on deploying kubernetes via juju. Its like the juju controller can't see a externally created kubernetes cluster.....is this behaviour expected and I'm just unfamiliar or is there some sort of juju component needed to communicate with the external kubernetes cluster that will allow the jujucharm to get out of the status of waiting and never loking like it communicate with anything outside of its environment.










    share|improve this question

























      1












      1








      1








      I'm asking because I have been trying to get some monitoring and log aggregation to work and when I do the juju side of install to an already existing kubernetes cluster it has a status of waiting and all documentation I can find has instructions on deploying kubernetes via juju. Its like the juju controller can't see a externally created kubernetes cluster.....is this behaviour expected and I'm just unfamiliar or is there some sort of juju component needed to communicate with the external kubernetes cluster that will allow the jujucharm to get out of the status of waiting and never loking like it communicate with anything outside of its environment.










      share|improve this question














      I'm asking because I have been trying to get some monitoring and log aggregation to work and when I do the juju side of install to an already existing kubernetes cluster it has a status of waiting and all documentation I can find has instructions on deploying kubernetes via juju. Its like the juju controller can't see a externally created kubernetes cluster.....is this behaviour expected and I'm just unfamiliar or is there some sort of juju component needed to communicate with the external kubernetes cluster that will allow the jujucharm to get out of the status of waiting and never loking like it communicate with anything outside of its environment.







      juju nagios3 kubernetes






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 31 at 16:06









      Hurell LyonsHurell Lyons

      61




      61






















          1 Answer
          1






          active

          oldest

          votes


















          0














          It is possible, but it cannot control all the components.



          The juju add-k8s command is what you need:




          Information about the cluster is needed in order to add it to Juju. This is found within the main Kubernetes configuration file that can be copied over from the Kubernetes master node (and saved as ~/.kube/config). We can then take advantage of the add-k8s command as it will parse the configuration file if copied to the above path. This allows us to quickly add the cluster.



          Note that the conjure-up installer adds the cluster for you.




          https://docs.jujucharms.com/2.5/en/clouds-k8s#using-kubernetes-with-juju_1






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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%2faskubuntu.com%2fquestions%2f1114463%2fthis-may-be-a-stupid-question-but-can-juju-work-on-a-kubernetes-cluster-that-was%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            It is possible, but it cannot control all the components.



            The juju add-k8s command is what you need:




            Information about the cluster is needed in order to add it to Juju. This is found within the main Kubernetes configuration file that can be copied over from the Kubernetes master node (and saved as ~/.kube/config). We can then take advantage of the add-k8s command as it will parse the configuration file if copied to the above path. This allows us to quickly add the cluster.



            Note that the conjure-up installer adds the cluster for you.




            https://docs.jujucharms.com/2.5/en/clouds-k8s#using-kubernetes-with-juju_1






            share|improve this answer






























              0














              It is possible, but it cannot control all the components.



              The juju add-k8s command is what you need:




              Information about the cluster is needed in order to add it to Juju. This is found within the main Kubernetes configuration file that can be copied over from the Kubernetes master node (and saved as ~/.kube/config). We can then take advantage of the add-k8s command as it will parse the configuration file if copied to the above path. This allows us to quickly add the cluster.



              Note that the conjure-up installer adds the cluster for you.




              https://docs.jujucharms.com/2.5/en/clouds-k8s#using-kubernetes-with-juju_1






              share|improve this answer




























                0












                0








                0







                It is possible, but it cannot control all the components.



                The juju add-k8s command is what you need:




                Information about the cluster is needed in order to add it to Juju. This is found within the main Kubernetes configuration file that can be copied over from the Kubernetes master node (and saved as ~/.kube/config). We can then take advantage of the add-k8s command as it will parse the configuration file if copied to the above path. This allows us to quickly add the cluster.



                Note that the conjure-up installer adds the cluster for you.




                https://docs.jujucharms.com/2.5/en/clouds-k8s#using-kubernetes-with-juju_1






                share|improve this answer















                It is possible, but it cannot control all the components.



                The juju add-k8s command is what you need:




                Information about the cluster is needed in order to add it to Juju. This is found within the main Kubernetes configuration file that can be copied over from the Kubernetes master node (and saved as ~/.kube/config). We can then take advantage of the add-k8s command as it will parse the configuration file if copied to the above path. This allows us to quickly add the cluster.



                Note that the conjure-up installer adds the cluster for you.




                https://docs.jujucharms.com/2.5/en/clouds-k8s#using-kubernetes-with-juju_1







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Feb 5 at 21:04

























                answered Feb 5 at 19:43









                NemoNemo

                6,64654163




                6,64654163






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1114463%2fthis-may-be-a-stupid-question-but-can-juju-work-on-a-kubernetes-cluster-that-was%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

                    Questions related to Moebius Transform of Characteristic Function of the Primes

                    List of scandals in India

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?