prompt stringlengths 65 38.7k | response stringlengths 41 29.1k |
|---|---|
<p>I'm able to connect to an <strong><a href="https://aws.amazon.com/elasticache/" rel="noreferrer">ElastiCache</a> Redis instance in a VPC</strong> from <strong>EC2 instances</strong>. But I would like to know if there is a way to connect to an ElastiCache Redis node outside of Amazon EC2 instances, such as from my <e... | <p>SSH port forwarding should do the trick. Try running this from you client.</p>
<pre><code>ssh -f -N -L 6379:<your redis node endpoint>:6379 <your EC2 node that you use to connect to redis>
</code></pre>
<p>Then from your client</p>
<pre><code>redis-cli -h 127.0.0.1 -p 6379
</code></pre>
<p>It works for m... |
<p>I've got the following ReplicationController JSON defined:</p>
<pre><code>{
"id": "PHPController",
"kind": "ReplicationController",
"apiVersion": "v1beta1",
"desiredState": {
"replicas": 2,
"replicaSelector": {"name": "php"},
"podTemplate": {
"desiredState": {
"manifest": {
... | <p>Solved. The volumes syntax was incorrect.
<a href="https://github.com/GoogleCloudPlatform/kubernetes/issues/1446" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/issues/1446</a></p>
|
<p>I'm trying to eval <a href="https://github.com/GoogleCloudPlatform/kubernetes" rel="noreferrer">Kubernetes</a>. I interesting to mount kubernetes on CoreOS cluster, and official documentation not have much, only have two references to blog of CoreOS; I'm currently using guide to <a href="https://coreos.com/blog/runn... | <p>The errors you are seeing in your log is that the pod you are trying to create has a port conflict with the Kubernetes API server. Both are trying to use port 8080. Fix this issue by changing the pod to run on another port.</p>
<p>You'll have to clean things up first. So remove the redis pod using kubecfg command. ... |
<p>Can you think of Azure Resource Manager as the equivalent to what kubernetes is for Docker?</p>
| <p>I think that the two are slightly different (caveat: I have only cursory knowledge of Resource Manager)</p>
<p>Azure Resource Manager lets you think about a collection of separate resources as a single composite application. Much like Google's Deployment Manager. It makes it easier to create repeatable deploymen... |
<p>On AWS, I'm hosting Multiple (totally different) Domains on EC2 covered by an ELB on top. I already have 1 Wildcard SSL Cert for 1 Domain and its childs. (xxxx.site1.com)</p>
<p>Then now can I add one more Single SSL Cert (on same ELB) for 1 another different Domain, like (www.site2.com) please? </p>
<p>I'm asking... | <p>No. The only way you could do it is if you use a second port for HTTPS connections (other than 443) which doesn't apply to real world scenarios since 443 is the default port for HTTPS</p>
<p>Having said that, you can simply create a second ELB and assign your second wildcard certificate to it. You can also forward ... |
<p>I'm trying to follow the directions to get the Google Cloud Platform kubernetes GuestBook example running. I've got a "kubernetes-guestbook-example" project ID with billing enabled in the Google Developer's Console under my account and i do a "gcloud auth login" to ensure i'm running as that account. Step zero says ... | <p>It's been a while, but i recall that the problem occurred because billing must be enabled for the application in the Google Developer Console. An easy catch once you get used to the platform but non-obvious when you're climbing the learning curve.</p>
|
<p>So I figured I should start using Ansible Galaxy when possible, instead of writing my own roles. I just installed my first role and it was installed to <code>/etc/local/ansible/roles</code> (I am on OSX).</p>
<p>Now I wonder how you install this roles where I actually need it? Do I just copy the role to where I need... | <p>Yes, you would copy them according to a sample project structure:</p>
<pre><code>site.yml
webservers.yml
fooservers.yml
kubernetes.yaml
roles/
common/
files/
templates/
tasks/
handlers/
vars/
meta/
webservers/
files/
templates/
tasks/
handlers/
vars/
... |
<p>What exactly is the difference between Apache's Mesos and Google's Kubernetes?
I understand both are server cluster management software. Can anyone elaborate where the main differences are - when would which framework be preferred?</p>
<p>Why would you want to use <a href="http://googlecloudplatform.blogspot.ch/201... | <p>Kubernetes is an open source project that brings 'Google style' cluster management capabilities to the world of virtual machines, or 'on the metal' scenarios. It works very well with modern operating system environments (like CoreOS or Red Hat Atomic) that offer up lightweight computing 'nodes' that are managed fo... |
<p>I would like to create a kubernetes pod that contains 2 containers, both with different images, so I can start both containers together.</p>
<p>Currently I have tried the following configuration:</p>
<pre><code>{
"id": "podId",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "podId"... | <p>The error in question here is "failed to find fit". This generally happens when you have a port conflict (try and use the same <code>hostPort</code> too many times or perhaps you don't have any worker nodes/minions.</p>
<p>I'd suggest you either use the Vagrant file that is in the Kubernetes git repo (see <a href=... |
<p>I am not sure either what I am trying to do is possible or correct way.</p>
<p>One of my colleague spinup kubernetes gce cluster (with 1 master and 4 minions.) in a project which is shared with me as owner access.</p>
<p>After setup he shared his ~/.kubernetes_auth keys along with .kubecfg.crt, .kubecfg.ca.crt and... | <p>You can also copy the cert files off of the master again. They are located in /usr/share/nginx on the master.</p>
|
<p>I tried to create a new cluster in Container Engine in the Google Developers Console.</p>
<p>It finished pretty quickly with a yellow triangle with an exclamation point. I'm assuming that means it didn't work.</p>
<p>Any idea what I could be doing wrong?</p>
| <p>There's a few things that could go wrong. The best option to figure out what's wrong in your situation is to try using the gcloud command line tool, which gives better error information. Information about how to install and use it is in <a href="https://cloud.google.com/container-engine/docs/before-you-begin#install... |
<p>How do I run a docker image that I built locally on <a href="https://cloud.google.com/container-engine/">Google Container Engine</a>?</p>
| <p>You can push your image to <a href="https://cloud.google.com/tools/container-registry/" rel="noreferrer">Google Container Registry</a> and reference them from your pod manifest.</p>
<h2>Detailed instructions</h2>
<p>Assuming you have a <code>DOCKER_HOST</code> properly setup , a GKE cluster running the last versio... |
<p>I understand the Container Engine is currently on alpha and not yet complete.</p>
<p>From the docs I assume there is no auto-scaling of pods (e.g. depending on CPU load) yet, correct? I'd love to be able to configure a replication controller to automatically add pods (and VM instances) when the average CPU load rea... | <p>As we work towards a Beta release, we're definitely looking at integrating the Google Compute Engine AutoScaler.</p>
<p>There are actually two different kinds of scaling:</p>
<ol>
<li>Scaling up/down the number of worker nodes in the cluster depending on # of containers in the cluster</li>
<li>Scaling pods up and ... |
<p>If I start a <a href="https://cloud.google.com/container-engine/" rel="nofollow">Google Container Engine</a> cluster like this:</p>
<pre><code>gcloud container clusters --zone=$ZONE create $CLUSTER_NAME
</code></pre>
<p>I get three worker nodes. How can I create a cluster with more?</p>
| <p>It's possible to create a different number of worker nodes by using the <code>--num-nodes</code> option when you create the cluster, like this:</p>
<pre><code>gcloud container clusters --zone=$ZONE create $CLUSTER_NAME --num-nodes=5
</code></pre>
|
<p>I'm very interesting in the new Google Cloud Service: Google Container Engine, namely in be a able to write systems that can scale using containers' properties.</p>
<p>I saw the StackOverflow questions:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/26899789/autoscaling-in-google-container-engine">Autos... | <p>Kubernetes roadmap is here: <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/roadmap.md" rel="nofollow">https://github.com/kubernetes/kubernetes/blob/master/docs/roadmap.md</a></p>
<p>Unfortunately, Google Container Engine hasn't released a roadmap yet. </p>
|
<p>There is problem , I can't link my pod container with persistent storage</p>
<p>This is config of my pod, where <code>elastic</code> is the name of the attached disk (same region, mounted and formatted as should), when I start the pod with this config I have this error:</p>
<p><code>Unable to mount volumes for pod... | <p>There is an example of mounting a PD in the github documentation: <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/volumes.md#creating-a-pd" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/volumes.md#creating-a-pd</a></p>
<p>PDs in GCE can only be attache... |
<p>I am not sure either what I am trying to do is possible or correct way.</p>
<p>One of my colleague spinup kubernetes gce cluster (with 1 master and 4 minions.) in a project which is shared with me as owner access.</p>
<p>After setup he shared his ~/.kubernetes_auth keys along with .kubecfg.crt, .kubecfg.ca.crt and... | <p>It is probably due to a not implemented feature, see this issue:
<a href="https://github.com/GoogleCloudPlatform/kubernetes/issues/1886" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/issues/1886</a></p>
<p>you can copy the files from /usr/share/nginx/... on the master
into your home dir and try a... |
<p>I installed an 8-node kubernetes cluster (1 master + 7 minion) but I faced a networking problem among minions.</p>
<p>I installed my cluster according to <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/fedora/fedora_manual_config.md" rel="nofollow">this step-by-ste... | <p>The Fedora guide you followed will only get you running on a single machine. It avoids the issues around setting up networking across nodes.</p>
<p>For kubernetes to work, the following network set up must be satisfied:</p>
<ol>
<li>Every container should be able to talk to every other container, even across node... |
<p>I have read some introduction of these projects, but still cannot get a clear idea of the difference between Kubernetes and Flynn/Deis. Can anyone help?</p>
| <p>Kubernetes is really three things:</p>
<ul>
<li>A way to dynamically schedule containers (actually, sets of containers called pods) to a cluster of machines.</li>
<li>Manage and horizontally scale a lot of those pods using labels and helpers (ReplicationController)</li>
<li>Communicate between sets of pods via serv... |
<p>I'm running (from Windows 8.1) a Vagrant VM for CoreOS (<a href="https://vagrantcloud.com/yungsang/boxes/coreos" rel="nofollow">yungsang/coreos</a>).</p>
<p>I installed kubernetes according to the guide I found <a href="https://coreos.com/blog/running-kubernetes-example-on-CoreOS-part-1" rel="nofollow">here</a> and... | <p>Kubernetes development is moving insanely fast right now so this could be out of date by tomorrow. With that in mind, the kubernetes folks recommend following one of their <a href="https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides" rel="nofollow">official installation guides<... |
<p>I have been working with Docker the last days and I have created a basic Docker image with a Dockerfile. It just starts a web server. Now, I have been reading further and created an account at Google Application Engine and want to deploy this image to Kubernetes.</p>
<p>I feel lost.</p>
<p>I don't understand how ... | <p>I have not worked with Kubernetes, but as far as I know, I think you have to upload to containers to a docker image repository. You can use the official hub and upload your images there (public images are free to upload, and you can have one private for free or pay for more).
Also you can have a private docker image... |
<p>What is the usual way to organize pods in a cluster in Kubernetes?</p>
<p>I have a Jenkins build server, Docker registry, Git repository and other development tools that I want to run in Google Container Engine. Do I create one cluster for each of them? Or can multiple pods be scheduled on each node? </p>
<p>So my... | <p>To answer your first question, multiple pods can be scheduled on each node. </p>
<p>One of the best parts about Google Container Engine / Kubernetes is that it is really flexible, so you can structure your services in the way that works best for you. For your specific use case, I think that a single cluster would m... |
<p>How does pods that are controlled by a replication controller and "hidden" behind a service in Kubernetes write/read data? If I have an application that recieves images from the user that needs to be persisted, where do I store that? Because of the service in front I have no control over which node it is stored at i... | <p>I think the "simple" answer to your question is that you will need shared storage under you Kubernetes cluster, so that every pods access the same data. Then it wouldn't matter where the pods are running and which pod is actually executing the service.</p>
<p>May be another solution would be <a href="https://github... |
<p>It seems like the best way to deploy a external facing application on Google Cloud would be to create an external load balancer with this line in the service configuration: </p>
<p><code>
{
...
"createExternalLoadBalancer": true
...
}
</code></p>
<p>This doesn't seem to work for AWS. I'm getting the following er... | <p>This is still a work in progress.</p>
<p>Please see:
<a href="https://github.com/GoogleCloudPlatform/kubernetes/pull/2672" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/pull/2672</a></p>
<p>For a proposal that starts to add support for AWS ELBs to Kubernetes, we're working to get that pull reque... |
<p>I am trying to run two Dockers on the same Kubernetes pod and I want one of the Docker container always to run before the other. I remember learning about specifying such dependency on the pod configuration file, but can not find that now. Kubernetes <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod" r... | <p>Kubernetes currently does not allow specification of container startup dependencies.</p>
<p>There has been some discussion in GitHub issues <a href="https://github.com/GoogleCloudPlatform/kubernetes/issues/1996">1996</a> and <a href="https://github.com/GoogleCloudPlatform/kubernetes/issues/1589">1589</a> that might... |
<p>I am trying to connect to a Docker container on Google Container Engine(GKE) from my local machine through the internet by TCP protocol. So far I have used Kubernetes services which gives an external IP address, so the local machine can connect to the container on GKE using the service. When we create a service, we ... | <p>I don't think there is currently a better solution than what you are doing. There is already a related issue, <a href="https://github.com/GoogleCloudPlatform/kubernetes/issues/1802" rel="noreferrer">kubernetes issue 1802</a>, about having multiple ports per service. I mentioned your requirements on that issue. Yo... |
<p>We are looking into using Docker plus either Mesos/Marathon or Kubernetes for hosting a cluster. However, the one issue that we haven't really seen any answers for is how to allow clustered services to connect to each other correctly. All of the ones that I have seen need to know about at least one other node befo... | <blockquote>
<p>However, the one issue that we haven't really seen any answers for is how to allow clustered services to connect to each other correctly.</p>
</blockquote>
<p>I think you're talking about HA/replicated/sharded apps here.</p>
<p>At the moment, in kubernetes, you can accomplish this by making an api c... |
<p>I've read that AWS does not support Kubernetes and builds their own Docker orchestration engine EC2 Container Service. However, on Kubernetes getting-started -page there is a guide on how to run Kubernetes on AWS:
<a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/... | <p>You can install Kubernetes on a normal Amazon <a href="http://aws.amazon.com/ec2/" rel="nofollow noreferrer">EC2</a> server. </p>
<p>The new container service is a separate offering by Amazon, called <a href="http://aws.amazon.com/ecs/" rel="nofollow noreferrer">ECS</a>. </p>
<p>EDIT: AWS released in 2018 a new co... |
<p><a href="https://github.com/kubernetes/kubernetes" rel="noreferrer">Kubernetes</a> is billed as a container cluster "scheduler/orchestrator", but I have no idea what this means. After reading the Kubernetes site and (vague) GitHub wiki, the best I can tell is that its somehow figures out what VMs are available/capab... | <p>The purpose of Kubernetes is to make it easier to organize and schedule your application across a fleet of machines. At a high level it is an operating system for your cluster.</p>
<p>Basically, it allows you to not worry about what specific machine in your datacenter each application runs on. Additionally it pro... |
<p>I am trying to consume an event stream provided by the <a href="https://github.com/googlecloudplatform/kubernetes">Kubernetes</a>
api using the <code>requests</code> module. I have run into what looks like a
buffering problem: the <code>requests</code> module seems to lag by one event.</p>
<p>I have code that loo... | <p>This behavior is due to a buggy implementation of the <code>iter_lines</code>
method in the <code>requests</code> library.</p>
<p><code>iter_lines</code> iterates over the response content in <code>chunk_size</code> blocks
of data using the <code>iter_content</code> iterator. If there are less than
<code>chunk_siz... |
<p>Kubernetes has master and minion nodes.</p>
<p>Will (can) Kubernetes run specified Docker containers on the master node(s)?</p>
<p>I guess another way of saying it is: can a master also be a minion?</p>
<p>Thanks for any assistance.</p>
| <p>Update 2015-08-06: As of <a href="https://github.com/GoogleCloudPlatform/kubernetes/pull/12349" rel="noreferrer">PR #12349</a> (available in 1.0.3 and will be available in 1.1 when it ships), the master node is now one of the available nodes in the cluster and you can schedule pods onto it just like any other node i... |
<p>What is the best way to deploy Google service account credentials inside a custom built CentOS Docker container for running either on Google's Container Engine or their 'container-vm'? This behavior happens automatically on the <a href="https://registry.hub.docker.com/u/google/cloud-sdk/">google/cloud-sdk</a> conta... | <p><strong>Update:</strong> as of 15 Dec 2016, the ability to update the scopes of an existing VM is now in beta; see <a href="https://stackoverflow.com/a/31868837/3618671">this SO answer</a> for more details.</p>
<hr>
<p><strong>Old answer:</strong> One approach is to create the VM with <a href="https://cloud.google... |
<p>What patterns are valid in kubernetes for the names of containers and ports?</p>
<p>I had underscores in the names of ports and containers and got an error. Replacing the underscores with hyphens worked.</p>
| <p>Container names and port names must conform to the <a href="https://www.rfc-editor.org/rfc/rfc1123#section-2" rel="nofollow noreferrer">RFC 1123 definition</a> of a DNS label.</p>
<p>Names must be no longer than 63 characters, must start and end with a lowercase letter or number, and may contain lowercase letters, n... |
<p>I would like to try Kubernetes' hooks but I didn't find any example how I should do it. As far as I know, with this hooks I can run bash scripts in freshly created containers and prior to terminate them.</p>
<p>I've found just a short <a href="http://kubernetes.io/docs/user-guide/container-environment/" rel="norefe... | <p>I don't see any examples .yaml files, but <a href="http://kubernetes.io/docs/api-reference/v1/definitions/#_v1_lifecycle" rel="noreferrer">Kubernetes API v1</a> describes the lifecycle events in the same manner. Currently, only PostStart and PreStop are defined and you should be able to use them by adding a lifecycl... |
<p>I wonder if it is possible to change labels of pods on the fly so services route requests to those pods based on new labels.</p>
<p>For example I have two services A and B. Then I have 10 pods, where 5 have label type = A (matches service A) and the other 5 have label type = B (matches service B). At some point I w... | <p>You can change the labels on individual pods using the <code>kubectl label</code> command, documented <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#label" rel="nofollow noreferrer">here</a>.</p>
<p>Changing the label of a running pod should not cause it to be restarted, and service... |
<p>is it possible to autoscale docker containers, which contain application servers (like wildfly/tomcat/jetty/) within kubernetes ? For example at cpu & ram use or based on http requests ? If there is a build in feature for that i can't find it, or is it possible to write something like a configuration script for ... | <p>Autoscaling of containers is not yet supported and is not part of the near term <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/roadmap.md" rel="nofollow">1.0 roadmap</a> for Kubernetes (meaning that the core team isn't going to add it soon but external contributions are certainly welcome... |
<p>I am relatively new to all these, but I'm having troubles getting a clear picture among the listed technologies. </p>
<p>Though, all of these try to solve different problems, but do have things in common too. I would like to understand what are the things that are common and what is different. It is likely that the... | <p><strong>Disclosure: I'm a lead engineer on Kubernetes</strong></p>
<p>I think that Mesos and Kubernetes are largely aimed at solving similar problems of running clustered applications, they have different histories and different approaches to solving the problem.</p>
<p>Mesos focuses its energy on very generic sched... |
<p>Using fleet I can specify a command to be run inside the container when it is started. It seems like this should be easily possible with Kubernetes as well, but I can't seem to find anything that says how. It seems like you have to create the container specifically to launch with a certain command.</p>
<p>Having a ... | <p>I spend 45 minutes looking for this. Then I post a question about it and find the solution 9 minutes later.</p>
<p>There is an hint at what I wanted inside the Cassandra <a href="https://github.com/kubernetes/examples/tree/master/cassandra" rel="noreferrer">example</a>. The <code>command</code> line below the image... |
<p>I see Mesosphere building all kinds of applications on the Mesos Framework like Hadoop, Kubernetes, etc. but since there is the Marathon applications for long-running services, why not just use that? E.g. why not setup Kubernetes nodes on a bunch of Marathon services? Why implement Kubernetes directly on Framework A... | <p><a href="http://mesos.apache.org/" rel="noreferrer">Apache Mesos</a> is a <a href="http://en.wikipedia.org/wiki/Two-level_scheduling" rel="noreferrer">2-level scheduler</a>. The purpose of a framework is to provide the intelligence of high-level scheduling. <a href="https://mesosphere.github.io/marathon/" rel="nor... |
<p>Can Kubernetes automatically add or reduce the number of pods,when it monitors for increases or decreases in load (i.e. CPU load, traffic)?</p>
<p>If it's possible, how can I configure it?</p>
| <p>Auto scaling of pods is not yet available, but it's definitely on our roadmap, as mentioned by Brendan in <a href="https://stackoverflow.com/a/26914911/1925481">a previous answer</a>.</p>
<p>It could actually be easily built outside of the core of Kubernetes, using the public Kubernetes API. If you'd rather wait fo... |
<p>I have been messing around with openshift and reading as much documentation as i can. Yet, the authentication performed by default(using admin .kubeconfig) puzzles me.</p>
<p>1)Are client-certificate-data and client-key-data the same as the admin certificate and key? I ask this because the contents of the certifica... | <p>OpenShift builds on top of Kubernetes - it exposes both the OpenShift APIs (builds, deployments, images, projects) and the Kubernetes APIs (pods, replication controllers, services). A client connecting to OpenShift will use both sets of APIs. OpenShift <em>can</em> run on top of an existing Kubernetes cluster, in ... |
<p>If you know the number of minions ahead of time, I suppose you could create x number of replicas, provided that you give a host port to ensure that there is one replica per minion, but is there a way to say that a pod should run on every minion if you don't know the number of minions ahead of time (or if minions are... | <p>There's been <a href="https://github.com/GoogleCloudPlatform/kubernetes/issues/1518" rel="nofollow">a lot of talk within the project</a> about creating a more straightforward feature to do this (and how to work around it in the meantime), but nothing official has been added yet, so these are really the two best opti... |
<p>How does Kubernetes' scheduler work? What I mean is that Kubernetes' scheduler appears to be very simple?</p>
<p>My initial thought is that this scheduler is just a simple admission control system, not a real scheduler. Is it that correct?</p>
<p>I found a short description, but it is not terribly informative:</p>... | <p>The paragraph you quoted describes where we hope to be in the future (where the future is defined in units of months, not years). We're not there yet, but the scheduler does have a number of useful features already, enough for a simple deployment. In the rest of this reply, I'll explain how the scheduler works today... |
<p>From what I understand, Kubernetes/Mesosphere is a cluster manager and Docker Swarm is an orchestration tool. I am trying to understand how they are different? Is Docker Swarm analogous to the POSIX API in the Docker world while Kubernetes/Mesosphere are different implementations? Or are they different layers?</p>
| <p><strong>Disclosure: I'm a lead engineer on Kubernetes</strong></p>
<p>Kubernetes is a cluster orchestration system inspired by the container orchestration that runs at Google. Built by many of the same engineers who built that system. It was designed from the ground up to be an environment for building distributed... |
<p>I'm researching:</p>
<ul>
<li><strong><a href="https://www.docker.com/" rel="nofollow">Docker Container</a></strong> </li>
<li><strong><a href="https://cloud.google.com/container-engine/" rel="nofollow">Google Containers</a></strong></li>
</ul>
<p>The goal is to use something of these 2 on our own physical boxes w... | <p>Not sure I fully understand the question, but neither kubernetes (the framework on which Google Container Engine runs) nor docker require a particular cloud provider. AFAIK, you can use docker containers on any linux distro, and kubernetes supports a number of configurations for running on your own machines. See <a ... |
<p>I'm looking at deploying Kubernetes on top of a CoreOS cluster, but I think I've run into a deal breaker of sorts.</p>
<p>If I'm using just CoreOS and fleet, I can specify within the unit files that I want certain services to not run on the same physical machine as other services (anti-affinity). This is sort of es... | <p>Looks like there are a few ways that kubernetes decides how to spread containers, and these are in active development.</p>
<p>Firstly, of course there have to be the necessary resources on any machine for the scheduler to consider bringing up a pod there.</p>
<p>After that, kubernetes spreads pods by replication c... |
<p>I have a kubernetes cluster running with 2 minions.
Currently I make my service accessible in 2 steps:</p>
<ol>
<li>Start replication controller & pod</li>
<li>Get minion IP (using <code>kubectl get minions</code>) and set it as <em>publicIPs</em> for the Service.</li>
</ol>
<p>What is the suggested practice f... | <p>As I mentioned in the comment above, the createExternalLoadBalancer is the appropriate abstraction that you are looking for, but unfortunately it isn't yet implemented for all cloud providers, and in particular for vagrant, which you are using locally. </p>
<p>One option would be to use the public IPs for all minio... |
<p>I'm just starting with Kubernetes on 2 node (master-minion) setup on 2 private cloud servers. I've installed it, did basic config and got it running some simple pods/services from the master to the minion.</p>
<p><strong>My question is:</strong></p>
<p><em>How can I use persistent storage with the pods when not usin... | <p>In the new API (<a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/api/v1beta3/types.go" rel="nofollow">v1beta3</a>), we've added many more volume types, including <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/api/v1beta3/types.go#L217" rel="nofollow">NFS volumes<... |
<p>I was trying to build kubernetes from source:
<a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/binary_release.md#building-from-source" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/binary_release.md#building... | <p>The problem you are experiencing is caused by the fact that you are unable to access the Docker socket <code>/var/run/docker.sock</code> as a non-root user. When you run <code>sudo docker version</code> you are running the Docker client <em>as root</em> so it does not experience this problem.</p>
<p>This is a basi... |
<p>I have deployed a Redis Cluster using Kubernetes. I am now attempting to use HAProxy to load balance. HAProxy is great for load balancing a redis cluster, IF you have static IPs. However, we don't have this when using kubernetes. While testing failover, Redis and Kubernetes handle election of a new master and deploy... | <p>According to <a href="https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/redis" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/redis</a> it uses sentinel to manage the failover. This reduces the problem to the "normal" sentinel based solution. </p>
<p>In th... |
<p>I'm using google container engine and I can create pods and services in my cluster. But when I try to use the DNS feature (skydns) to lookup my services nothing is being found. If I log in to the non-master node, I can see the DNS container and can use 'host' command to do DNS lookup (installed with apt-get). But I ... | <p>There's a little bit of magic involved that's intended to make DNS in Kubernetes more convenient from within a pod. Let me try to explain.</p>
<p>The way that the DNS names are constructed within Kubernetes is <code><service-name>.<namespace>.kubernetes.local</code>. This is why <code>kubernetes.local</... |
<p>I have two instances of an app container (happens to be a Node.JS app, but that shouldn't matter) running in a Kubernetes cluster on Google Container Engine. I'd like to scale it up to three instances.</p>
<p>My cluster has a master and two minion nodes, with a replication controller and a load balancer service. ... | <p>Update (June 2015): Kubernetes on GCE now uses managed instance groups which you can manually resize to add new nodes to your cluster. </p>
<hr>
<p>There isn't currently a way to add nodes to your existing Google Container Engine cluster. We are currently adding support to Kubernetes to allow clusters to <a href="... |
<p>ActiveMQ built-in <a href="http://activemq.apache.org/discovery.html" rel="nofollow">cluster discovery mechanisms</a> are basically based on multicast (excepting LDAP here).</p>
<p>Openshift v3 / Kubernetes don't support well multicast as it could be quite bad or misfunctioning on a public cloud infrastructure.</p>... | <p>fabric8 is a project that has a number of value-adds for OS3 / kubernetes platforms</p>
<ul>
<li><a href="http://fabric8.io/" rel="nofollow">http://fabric8.io/</a></li>
</ul>
<p>There is <em>clustered</em> ActiveMQ out of the box </p>
<ul>
<li><a href="http://fabric8.io/guide/fabric8MQ.html" rel="nofollow">http:/... |
<p>I am planning to test Kubernetes locally, but would like to ask some theoretic questions before. </p>
<p>I created a pipeline in python that takes as input a whole bunch of files from a directory, and created a docker image out of it (this is my Pod)</p>
<p>What I understood from the documentation is that the Kube... | <p>You would typically only ever have one minion/host. So if you are deploying your minions on physical hardware, there is a 1:1 mapping between minions and physical hosts.</p>
<p>If you are deploying into a virtual cluster on your laptop, you will want to make sure that each virtual minion has enough memory to run a... |
<p>I started a cluster in aws following the guides and then went about following the guestbook. The problem I have is accessing it externally. I set the PublicIP to the ec2 publicIP and then use the ip to access it in the browser with port 8000 as specified in the guide. </p>
<p>Nothing showed. To make sure it was... | <p>On AWS you have to use your PRIVATE ip address with Kubernetes' services, since your instance is not aware of its public ip. The NAT-ing on amazon's side is done in such a way that your service will be accessible using this configuration. </p>
<p><strong>Update:</strong> please note that the possibility to set the ... |
<p>I have recently started exploring kuberenetes and done with practical implementation of pods,services and replication Controller on google cloud. I have some doubts over service and network access .
First, Where is the service deployed which will work as load balancer for group of pods ?
Second, does the request to ... | <p>A service proxy runs on each node on the cluster. From inside the cluster, when you make a request to a service IP, it is intercepted by the service proxy and routed to a pod matching the label selector for the service. If you have specified an external load balancer for your service, the load balancer will pick a n... |
<p>I have a distributed application running on virtual machines, among which I have one service running on active/passive mode. The active VM provides service via a public IP. Should the active VM fail, the public IP will be moved to the passive VM and the passive VM will become active and starts to provide service.</p... | <p>It sounds like your application is using its own master election scheme between the two VMs acting as a load balancer and you know internally which one is currently the master. </p>
<p>This can be achieved today in Kubernetes using a service that spans both pods (master and standby) and a readiness probe that only ... |
<p>Based on the following setup of Kubernetes on <a href="https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides/coreos/azure" rel="nofollow">Microsoft Azure</a>.</p>
<p>I was able to deploy my Docker containers, using the same configuration settings. </p>
<p>We have 2 categories of... | <p>Currently, adding labels to the hosts and restricting your pods to nodes with the appropriate label (e.g. 'Large' / 'Small') is the best way to do this. For an example, see <a href="https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/node-selection" rel="nofollow">examples/node-selection</a></p>
... |
<p>I am trying to run a docker image in Google Container Engine. The instance comes up with no running docker images. I can ssh and run the docker commands and the service comes up. But nothing happens when I just launch the instance from the terminal. Can some one take a look at what I am doing wrong.</p>
<p>My docke... | <p>You mentioned in your question that you are using google container engine, but in fact you are using the <a href="https://cloud.google.com/compute/docs/containers/container_vms" rel="nofollow">container vm</a> (which is a bit different). If you want to use container engine, please check out the documentation to crea... |
<p><a href="https://github.com/GoogleCloudPlatform/kubernetes">Kubernetes</a> seems to be all about deploying containers to a cloud of clusters. What it doesn't seem to touch is development and staging environments (or such).</p>
<p>During development you want to be as close as possible to production environment with ... | <p>Update (2016-07-15)</p>
<p>With the release of Kubernetes 1.3, <a href="https://github.com/kubernetes/minikube">Minikube</a> is now the recommended way to run Kubernetes on your local machine for development. </p>
<hr>
<p>You can run <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/gett... |
<p>I began to try Google Container Engine recently. I would you like to upgrade the Kubernetes Cluster to the latest version available, if possible without downtime. Is there any way to do this?</p>
| <p>Unfortunately, the best answer we currently have is to create a new cluster and move your resources over, then delete the old one.</p>
<p>We are very actively working on making cluster upgrades reliable (both <a href="https://github.com/GoogleCloudPlatform/kubernetes/issues/6079" rel="noreferrer">nodes</a> and the ... |
<p>I'm looking for some pros and cons of whether to go with Marathon and Chronos, Docker Swarm or Kubernetes when running Docker containers on DC/OS. </p>
<p>For example, when is it better to use Marathon/Chronos than Kubernetes and vice versa? </p>
<p>Right now I'm mostly into experimenting but hopefully we'll start... | <p>I'll try to break down the unique aspects of each container orchestration framework on Mesos.</p>
<p>Use <a href="https://github.com/docker/swarm/">Docker Swarm</a> if:</p>
<ul>
<li>You want to use the familiar Docker API to launch Docker containers on Mesos.</li>
<li>Swarm may eventually provide an API to talk to... |
<p>I have a Kubernetes cluster running on 3 servers, a master and 2 minions. I would like to add another minion. Is it possible to add a minion without having to do the complete installation again? So far when searching for guides to do this, I can only find excellent guides on getting the whole cluster up. </p>
| <p>For me the difference between a master and a minion are the processes that get started and the orchestration (the master signals the minions that it is done and they can now come up, the minions wait for the signal). To bring up a minion after things are up would not be any different, except the signaling is alread... |
<p>If I setup a replication controller for something like a database, how does it keep the data in the replicas in-sync? If one of the replica goes down, how does it bring it back up with the latest data?</p>
| <p>A replication controller ensures that the desired number of pods with the same template are kept running in the system. The replication controller itself does not know anything about what it is running, and doesn't have any special hooks for containers running databases. This means that if you want to run a containe... |
<p>I followed kubernetes' guestbook, and changed image value like this, want to pull images from dockerhub.</p>
<pre><code>"image": "redis"
</code></pre>
<p>But it failed. the log say:</p>
<blockquote>
<p>Failed to create pod infra container: image pull failed for gcr.io/google_c...</p>
</blockquote>
<p>And I set... | <p>Since you are in China, you won't be able to fetch images from gcr.io (including the pause image). If you want to compile your own pause image and upload it to an image registry that you have access, you can specify <code>--pod_infra_container_image="<registry>/pause:latest"</code> when launching the kubelet. ... |
<p>I am currently trying to set up kubernetes on a multi-docker container on CoreOS stack for AWS. To do this I need to set up etcd for flannel and am currently using <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/docker-multinode/master.md" rel="nofollow">this guide<... | <p>Docker should create this file for you. Are you running this command on your OS X machine? or are you running it inside the boot2docker VM?</p>
<p>I think you need to:</p>
<pre><code>boot2docker ssh
</code></pre>
<p>Then:</p>
<pre><code>sudo sh -c 'docker -d -H unix:///var/run/docker-bootstrap.sock -p /var/run/... |
<p>Are there any up-to-date guides, or VM images of some Linux VM + Kubernetes that I could run on Windows? Both VMWare, VirtualBox or Vagrant images would help. I'm trying to set up a development environment. (There is no production environment yet, but it will be most likely self-hosted.)</p>
<p>I tried installing s... | <p>If you install Docker on Windows (see the <a href="https://docs.docker.com/installation/windows/" rel="nofollow">Docker instructions</a>), you can then follow the guide to run <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/docker.md" rel="nofollow">Kubernetes local... |
<p>I was wondering if anyone knows how to create a json file that would be the same as running:</p>
<p>docker run -p 80:80 -p 443:443 starblade/pydio-v4</p>
<p>I trying something very ambitious, I want to start my docker container in kubernetes-mesos cluster but can't seem to get the ports correct in the json file, a... | <p>So, I finally got this to work using the following .json files:</p>
<p>frontend-service.json</p>
<pre><code> {
"id": "frontend",
"kind": "Service",
"apiVersion": "v1beta1",
"port": 443,
"selector": {
"name": "frontend"
},
"publicIPs": [
"${servicehost}"
]
}
</code></pre>
<p>frontend-con... |
<p>I started Kubernetes master and minion on local machine using Vagrant. I can create a json file for my Kubernetes pod where I can start several public containers.</p>
<p>However, one Docker container is local one, ontop on <code>java:8-jdk</code>, configured with DockerFile.</p>
<p>How can I reference this local Doc... | <p>After you build the docker image, you can "side-load" it into your locally available images by running <code>docker load -i /path/to/image.tar</code>. Once you've done this, Kubernetes will be able to load the image without reaching out to an external hub. </p>
|
<p>I'm looking to automate the process of setting up a MongoDb replica set via a sidecar when using Docker and Kubernetes.</p>
<p><strong>The above setup isn't terribly important</strong>, what it boils down to is that I need to be able to call the mongo replica set commands (e.g. <code>rs.initiate()</code>, <code>rs.... | <h2>How are the replica set admin helpers implemented?</h2>
<p>The <a href="http://docs.mongodb.org/manual/reference/method/js-replication/" rel="noreferrer"><code>rs.*</code> replica set admin helpers</a> in the <code>mongo</code> shell are wrappers for MongoDB commands which you can send from any driver.</p>
<p>You... |
<p>What is the preferred way of updating a set of pods (e.g. after making code changes & pushing underlying docker image to docker hub) controlled by a replication controller in kubernetes cluster?</p>
<p>I can see 2 ways:</p>
<ol>
<li>Deleting & re-creating replication controller manually</li>
<li>Using <cod... | <p>Update: <code>kubectl rolling-update</code> has been deprecated and the replacement command is <code>kubectl rollout</code>. Also note that since I wrote the original answer the Deployment resource has been added and is a better choice than ReplicaSets as the rolling update is performed server side instead of by the... |
<p>So I'm trying to setup a master Kubernetes node on coreos in vagrant. I'm using the example master cloud-config, found here <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/coreos/cloud-configs/master.yaml" rel="nofollow">https://github.com/GoogleCloudPlatform/kuber... | <p>Turns out the example master config is looking for <code>etcd2.service</code>, while the actual file is <code>etcd.service</code> so I changed it in the example units and everything worked.</p>
<p><strong>EDIT</strong></p>
<p>The reason why this worked and was an issue to begin with was that I was using the coreso... |
<p>I'm using Google's Container Engine service, and got a pod running a server listening on port 3000. I set up the service to connect port 80 to that pod's port 3000. I am able to curl the service using its local and public ip from within the node, but not from outside. I set up a firewall rule to allow port 80 and se... | <p>TL;DR: Use the Internal IP of your node as the public IP in your service definition. </p>
<hr>
<p>If you enable verbose logging on the kube-proxy you will see that it appears to be creating the appropriate IP tables rule:</p>
<pre><code>I0602 04:07:32.046823 24360 roundrobin.go:98] LoadBalancerRR service "defau... |
<p>I'm trying to setup a kubernetes cluster for a development environment (local vms). Because it's development I'm not using working certs for the api-server. It would seem I have to use the secure connection in order to connect minion daemons such as <code>kube-proxy</code> and <code>kubelet</code> to the master's <... | <p>You can set the flag <code>--insecure-bind-address=0.0.0.0</code> when starting kube-apiserver to allow access to the unauthenticated api endpoint running on port 8080 to your network (by default it is only accessible on localhost). </p>
|
<p>When I define multiple containers in a pod/pod template like one container running nginx and another php-fpm, how can they access each other?</p>
<p>Do I have to define some links in the definition (I could not find docs explaining <em>all</em> available config options) or can they each other by default?</p>
<p>If... | <p>All the containers in a pod are bound to the same network namespace.</p>
<p>This means that (a) they all have the same ip address and (b) that <code>localhost</code> is the same across all the containers. In other words, if you have Apache running in one container in a pod and MysQL running in another, you can acc... |
<p>I am trying to run kubernetes on EC2 and I used CoreOs alpha channel ami.I configured Kubectl ssh tunnel for the communication between Kubectl client and Kubernetes API.</p>
<p>But when I try <strong>kubectl api-versions</strong> command, I am getting following error.</p>
<p><strong>Couldn't get available api versio... | <p>Reason for this issue was that I haven't set the kubernetes_master environment variable properly. As there is a ssh tunnel between the kubectl client and API, kubernetes master environment variable should be set to localhost.</p>
|
<p>I used to be able to curl </p>
<pre><code>https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_PORT_443_TCP_PORT/api/v1beta3/namespaces/default/
</code></pre>
<p>as my base URL, but in kubernetes 0.18.0 it gives me "unauthorized". The strange thing is that if I used the external IP address of the API machine (<code>http:/... | <p>In the official documentation I found this: </p>
<p><a href="https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod" rel="noreferrer">https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod</a></p>
<p>Apparently I wa... |
<p>I am trying to setup a Kubernetes cluster on my AWS account using the <code>kube-up.sh</code> setup script that is bundled with kubernetes source at kubernetes/cluster/kube-up.sh</p>
<p>But when I ran kube-up.sh I am getting the following error:</p>
<pre><code>pranjal:~/go/src/github.com/GoogleCloudPlatform/kubern... | <p>After a bit of searching I figured out a solution to the problem.</p>
<p>A lot of the AWS configuration goes into the <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/cluster/aws/config-default.sh" rel="nofollow">config-default.sh</a> file. However there is no option to set the Access Key ID, ... |
<p>I have a piece of code to run on a k8s cluster. I need shutdown those k8s nodes when all of my code running in the pods get finished. I let my code to serve on a port until the job of the code doing completed, and I will keep the program running to avoid the replication controller starting another pod. and I defined... | <p>If a TCP connection can't be opened to the pod's IP on the given port, a different pod will be connected to instead.</p>
<p>In other words, as long as the pod closes the socket that was listening on the port, no requests should be sent to it after that point.</p>
|
<p>I installed gcloud SDK and everything went fine. However I'm trying to use kubectl and it hasn't been installed.</p>
<p>I run the following commands:</p>
<pre><code>gcloud components update preview
All components are up to date.
gcloud components update alpha
All components are up to date.
</code></pre>
<p>So see... | <p>It appears that you need to run <code>gcloud components update kubectl</code>. I'm not sure why (this didn't used to be required). </p>
|
<p>I installed a Kubernetes cluster by following the instruction here:</p>
<p><a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/vagrant.md" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/vagrant.md</a></p>
<p>Ev... | <p>I found this problem on GitHub:</p>
<p><a href="https://github.com/GoogleCloudPlatform/kubernetes/issues/9270" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/issues/9270</a></p>
<p>Here it was suggested to use the code in HEAD. I did that and now it is working fine.</p>
|
<p>I'm currently learning about Kubernetes and still trying to figure it out. I get the general use of it but I think that there still plenty of things I'm missing, here's one of them. If I want to run Kubernetes on my public cloud, like GCE or AWS, will Kubernetes spin up new VMs by itself in order to make more comput... | <p>Kubernetes supports scaling, but not auto-scaling. The addition and removal of new pods (VMs) in a Kubernetes cluster is performed by <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/replication-controller.md" rel="nofollow">replication controllers</a>. The size of a replication controller... |
<p>I am able to get a list of all pods running on a kubernetes cluster using:</p>
<pre><code>kubectl get pods
</code></pre>
<p>How do I get all the containers running on a particular pod?</p>
| <p>You can use the <code>describe</code> command:</p>
<pre><code>kubectl describe pod [podname]
</code></pre>
<p>That will specify which containers are in the pod, along with other information.</p>
|
<p>I'm trying to setup example from <a href="https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress" rel="nofollow">Running Wordpress with a Single Pod</a>.</p>
<ul>
<li>I've done <a href="https://cloud.google.com/container-engine/docs/before-you-begin" rel="nofollow">Before You Begin</a> section:</l... | <p>If you want to access the container directly using the node VM's IP address, you need to specify a host port in addition to a container port, e.g.
<code>kubectl run-container wordpress --image=tutum/wordpress --port=80 --hostport=80</code></p>
<p>Alternatively, you can access wordpress via the proxy running on the... |
<p>I have a kubernetes cluster, and I am wondering how (best practice) to update containers. I know the idea is to tear down the old containers and put up new ones, but is there a one-liner I can use, do I have to remove the replication controller or pod(s) and then spin up new ones (pods or replicaiton controllers)? ... | <p>Kubectl can automate the process of rolling updates for you. Check out the docs here:
<a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/kubectl_rolling-update.md" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/kubectl_rolling-update.md</a></p>
<p>A rollin... |
<p>I'm creating a kubernetes cluster, and in it I have several services. I know based on <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/services.md#discovering-services" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/services.md#discovering-services</a> I ... | <p>The environment variables for a given service are put in every container that is started after the service was created.</p>
<p>For example, if you create a pod <code>foo</code> and then later a service <code>bar</code>, the pod's containers won't have any environment variables for <code>bar</code>.</p>
<p>If you i... |
<p>I'm having k8s cluster with 3 minions, master and haproxy in front. When I use </p>
<pre><code>kubectl exec -p $POD -i -t -- bash -il
</code></pre>
<p>for accessing bash in the pod (it is a single container in this case) I get in and after something like 5 mins I get dropped out of the terminal. If I reenter the c... | <p>It is a known issue -
<a href="https://github.com/kubernetes/kubernetes/issues/9180" rel="nofollow">https://github.com/kubernetes/kubernetes/issues/9180</a></p>
<p>The kubelet webserver times out.</p>
|
<p>I'd like to run two pods in exclusive nodes. For instance, I have 4 nodes (node-1, node-2, node-3, node-4) and 2 pods (pod-1, pod-2). I want only one pod to run in each node and each pod to run in two nodes, e.g. pod-1 in node-1 and node-2, pod-2 in node-3 and node-4. Is there a way to configure this way?</p>
| <p>You can force exclusivity by creating pod definitions that are unable to schedule on the same machine. The easiest way to do that is to assign each pod the same host port. Once you have the same host port set for both of your pod definitions, if you create two replication controllers with two replicas each, then the... |
<p>I follow the example at <a href="https://github.com/GoogleCloudPlatform/kubernetes/tree/master/cluster/addons/dns" rel="nofollow">https://github.com/GoogleCloudPlatform/kubernetes/tree/master/cluster/addons/dns</a></p>
<p>But I cannot get the nslookup output as the example.</p>
<p>When execute</p>
<pre><code>kube... | <p>It doesn't appear that <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/hack/local-up-cluster.sh" rel="nofollow">local-cluster-up.sh</a> supports DNS out of the box. For DNS to work, the kubelet needs to be passed the flags <code>--cluster_dns=<ip-of-dns-service></code> and <code>--cluste... |
<p>I'm trying to run a docker container with nginx on a kubernetes cluster. I'm using the environment variable service discovery for all my other containers, so I would like to keep it consistent and not have to bring something like skydns into the mix just because of this. Is it possible to access environment variab... | <p>How about this the shell script below which is run by a Docker container?</p>
<p><a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/295bd3768d016a545d4a60cbb81a4983c2a26968/cluster/addons/fluentd-elasticsearch/kibana-image/run_kibana_nginx.sh" rel="nofollow">https://github.com/GoogleCloudPlatform/kuber... |
<p>I have a dev kubernetes cluster setup where I have a minion running kube-proxy and kubelet. Both only start if it can connect to the master's apiserver, which it can. Howerver I am getting </p>
<p><code>error updating node status, will retry: error getting node "10.211.55.126": minion "10.211.55.126" not found</co... | <p>Currently, I have to manually register the minion prior to spinning up the minion instance. This is because there is an open issue as of right now not allowing the minion to self-register in certain cases.</p>
<p><strong>UPDATE</strong></p>
<p>Now I'm using kube-register to register each minion/node on start of t... |
<p>When using Kubernetes to manage your docker containers, particularly when using the replication controller, when should you increase an images running container instances to more than 1? I understand that Kubernetes can spawn as many container replicas as needed in the replication controller configuration file, but ... | <p>I think you laid out the issues pretty well. The two kinds of scaling you described are called "vertical scaling" (increasing memory or CPU of a single instance) and "horizontal scaling" (increasing number of instances).</p>
<p>On availability: As you observed, you can achieve pretty good availability even with a s... |
<p>I've got a <code>Pod</code> configuration from Docker that involves 7 nodes. It gets stuck in <code>Pending</code> state unless I remove two of the containers from the config. It doesn't matter which two I remove. It only works with five containers, which seems like a hard limit that I can't find documented.</p>
<p... | <p>I'm fairly sure there isn't a hard cap of 5 containers per pod, so there's likely some other reason why the scheduler can't find a node to run your pod on.</p>
<p>You should be able find a message saying why the pod is still pending by running <code>kubectl describe pod $PODNAME</code> to see the most recent 'event... |
<p>I've installed a kubernetes cluster (using Google's Container Engine) and I noticed a service listening on port 443 on the master server. Tried to access it but it requires username and password, so any ideas what these credentials are?</p>
| <p>You can read the cluster config using kubectl. This will contain the username and password for the UI.</p>
<pre><code>kubectl config view
</code></pre>
|
<p>I'm new to Kubernetes. I installed it on my local Ubuntu 14.04 machine. I want to run nginx server and I want see it in my browser. I'm following this <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/locally.md#running-a-user-defined-pod" rel="nofollow noreferrer">s... | <p>The manifest that the documentation is referring to is <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/pod.yaml" rel="nofollow">here</a>. Copy this file onto your local machine (or find it on your system if you've already downloaded a copy of the git repository). You can edit the file... |
<p>I am using a Kubernetes cluster deployed through Google Container Engine (GKE) from the Google Cloud Developer's Console, cluster version 0.19.3. I would like to run a privileged container, like in the <a href="https://github.com/kubernetes/kubernetes/tree/master/examples/volumes/nfs" rel="noreferrer">Kubernetes NF... | <p>Update: Privileged mode is now enabled by default starting with the 1.1 release of Kubernetes which is now available in Google Container Engine.</p>
<hr>
<p>Running privileged containers (including the NFS server in that example) isn't currently possible in Google Container Engine. We are looking at ways to solve ... |
<p>I would like to run Aerospike cluster on Docker containers managed by Kubernetes on CoreOS on Google Compute Engine (GCE). But since GCE does not permit multicast, I have to use Mesh heartbeat as described <a href="http://www.aerospike.com/docs/operations/configure/network/heartbeat/#mesh-unicast-heartbeat" rel="nof... | <p>An alternative to specifying all mesh seed IP addresses is to use <code>the asinfo tip command</code>.</p>
<p>Please see:</p>
<p><a href="http://www.aerospike.com/docs/reference/info/#tip" rel="noreferrer">http://www.aerospike.com/docs/reference/info/#tip</a></p>
<p>the tip command</p>
<pre><code>asinfo -v 'tip:... |
<p>I created a cluster in google compute using the command:</p>
<pre><code>./kube-up.sh
</code></pre>
<p>Kubernetes has created 1 master and 4 minios servers. I try delete two minions in google cloud and are reloaded.</p>
<p>I try also deleting the kubernetes minions with kubectl and after delete de VM. This fails.<... | <p><code>kube-up.sh</code> created a managed instance group with size 4 which caused 4 nodes to be created. If you delete a node, the managed instance group will replace it so that you always have 4 nodes. You can change the number of nodes in the managed instance group by navigating to the "Instance Groups" link in th... |
<p>When using Kubernetes to manage your docker containers, particularly when using the replication controller, when should you increase an images running container instances to more than 1? I understand that Kubernetes can spawn as many container replicas as needed in the replication controller configuration file, but ... | <p>There are a variety of reasons for why you would scale an application up or down. </p>
<p>The Kubernetes project is looking to provide auto-scaling in the future as a feature to dynamically size up and size down (potentially to 0) a replication controller in response to observed traffic. For a good discussion on ... |
<p>I'm still wrapping my head around Kubernetes and how that's supposed to work. Currently, I'm struggling to understand how to model something like a PostgreSQL cluster with streaming replication, scaling out and automatic failover/failback (<code>pgpool-II</code>, <code>repmgr</code>, pick your poison).</p>
<p>My ma... | <p>There's an example in OpenShift: <a href="https://github.com/openshift/postgresql/tree/master/examples/replica">https://github.com/openshift/postgresql/tree/master/examples/replica</a> The principle is the same in pure Kube (it's not using anything truly OpenShift specific, and you can use the images in plain docker... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.