prompt stringlengths 65 38.7k | response stringlengths 41 29.1k |
|---|---|
<p>I have a Node app that's composed of several independent modules, talking to each other over AMQP. This app is started by an index.js file that instatiates every other index.js in the different folders of my project, which in turn instantiate the actual modules.</p>
<p>I've been reading about microservices and I'd ... | <blockquote>
<p>Should I have a separate packages.json for each Dockerfile?
From what I've read, I understand the Dockerfile will actually run NPM
and download the actual packages. If I have a single packages file I
would have a lot of bloat in each of my images, with unused modules.</p>
</blockquote>
<p>Sure ... |
<blockquote>
<p>Per Taking Solr To Production
(<a href="https://lucene.apache.org/solr/guide/6_6/taking-solr-to-production.html" rel="nofollow noreferrer">https://lucene.apache.org/solr/guide/6_6/taking-solr-to-production.html</a>),
"Running Solr as root is not recommended for security reasons, and the
<strong>... | <p>Workaround: Use initContainers </p>
<pre><code># Before Pod Starts this will change the ownership of the initContainers:
initContainers:
- name: volume-mount-hack
image: busybox
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
... |
<p>I have set up a multi-container pod consisting on multiple interrelated microservices. On docker-compose if I wanted to access the another container in a compose I just use the name of the service.</p>
<p>I am trying to do the same thing with Kube, without having to create a pod per microservice.</p>
<p>I tried t... | <blockquote>
<p>The applications in a pod all use the same network namespace (same IP and port space), and can thus “find” each other and communicate using localhost. Because of this, applications in a pod must coordinate their usage of ports.</p>
</blockquote>
<p><a href="https://kubernetes.io/docs/concepts/workloa... |
<p>I am new to kubernetes, just wanted to know if my question is valid.</p>
<p>I had a question if a single POD can host 2 or more services.</p>
<p>And If it can host multiple services, how can it differentiate the traffic between the services. </p>
<p>Does it do a PORT mapping.</p>
<p>Please, let me know.</p>
| <p>You can add multiple containers to the same pod, but that's only recommended if the services are tightly coupled, like if they need to communicate. For example, if you have a web server and a sql database, you would likely want them in the same pod.</p>
<p>If the services are distinct, you would likely want to put ... |
<p>I want to know when the master nodes want to connect the etcd cluster, which etcd node will be selected?does the master node always connects the same etcd node untill it becomes unavailable?does each node in master cluster will connect the same node in etcd cluster?</p>
| <p>The scheduler and controller-manager talk to the API server present on the same node. In a HA setup you'll have only one of them running at a time (based on a lease) and whoever is the current active will be talking to the local API server. If for some reason it fails to connect to the local API server, it doesn't r... |
<p>I have to deploy a Kubernetes cluster, and I currently use <code>bash</code> to set up the security key, the environment prop, create pods etc with <code>kuberctl</code>. But I am wondering if <code>bash</code> is a good choice to used when the deployment steps getting big. E.g. ~50 deployment and services.</p>
<p>... | <p>In order to install/manage resources in kubernetes the advised solution is to use <a href="https://github.com/kubernetes/helm" rel="nofollow noreferrer">Helm Package Manager</a>. </p>
<blockquote>
<p>Helm is a tool for managing Kubernetes charts. Charts are packages of
pre-configured Kubernetes resources.</p>
<... |
<p>I have a Kubernetes pod based on jenkins/slave container to which I mount docker socket and docker binary file with necessary kernel module in privileged mode. Inside that pod I build Docker image basing on which I run docker container. Inside that container I don't have Internet connection at all because pod contai... | <p>Not sure if this article will help you with this issue, <a href="https://radu-matei.com/blog/kubernetes-jenkins-azure/#configuring-jenkins-to-dinamically-spawn-agents-docker-containers-for-builds" rel="nofollow noreferrer">JENKINS DECLARATIVE PIPELINES WITH KUBERNETES</a> . This article shows a full stack on how to ... |
<p>Is there any tools/way to get CPU, MEM, NET metrics of <code>PODs</code>. Other than below links, is there any tools available</p>
<ul>
<li><a href="https://github.com/kubernetes/kube-state-metrics" rel="nofollow noreferrer"><code>kube-state-metrics</code></a> - Able to deploy but no useful POD metrics. You can see... | <p>I just want to give complete answer to support @brian-brazil's answer. <code>cAvisor</code> supports <code>Prometheus</code>.</p>
<ol>
<li><p>Just launch <code>cAdvisor</code> container as said in <a href="https://github.com/google/cadvisor#quick-start-running-cadvisor-in-a-docker-container" rel="nofollow noreferre... |
<p>with the help of kubernetes I am running daily jobs on GKE, On a daily basis based on cron configured in kubernetes a new container spins up and try to insert some data into BigQuery.</p>
<p>The setup that we have is we have 2 different projects in GCP in one project we maintain the data in BigQuery in other projec... | <p>So, if your GKE project is project <code>my-gke</code>, and the project containing the services/things your GKE containers need access to is project <code>my-data</code>, one approach is to:</p>
<ul>
<li>Create a service account in the <code>my-data</code> project. Give it whatever GCP roles/permissions are needed ... |
<p>Since Kubernetes release 1.6 until RBAC's GA in 1.8 there has been a lot of background noise about how RBAC is now the default in Kubernetes and is a complete rehaul of the permissions framework. As an OpenShift Origin user/administrator, I haven't been following the Kubernetes side of the discussion, reasoning that... | <p>Yes, it was an upstream port of OpenShift's access control, with minor differences. Over the 3.6 and 3.7 releases, OpenShift is migrating to back its authorization objects with Kubernetes objects:</p>
<ul>
<li>In OpenShift 3.6, OpenShift authorization objects migrate to corresponding Kubernetes RBAC objects, overwr... |
<p>I am pretty new to kubernetes and I have successfully setup a cluster on google container engine .
In my cluster I have a backend api developed with dropwizard, front end developed with node js and a mysql database.
All have been deployed to the cluster and are working .However my challenge is this after setting up... | <p>As long as <code>kube-dns</code> is running (which I believe is "always unless you disable it"), all Service objects have an <em>in cluster</em> DNS name of <code>service_name +"."+ service_namespace + ".svc.cluster.local"</code> so all other things would address your <code>backendapi</code> in the <code>default</co... |
<p>How long is a version of Kubernetes (e.g., 1.7.x) supported? How many versions of Kubernetes back are supported for security and bug fixes? Is this documented somewhere?</p>
<p>Note, I've tried to locate this information in the <a href="https://github.com/kubernetes/community" rel="nofollow noreferrer">community re... | <p>Matt,</p>
<p>At Kubernetes community, we define 3 types of Kubernetes releases:</p>
<ul>
<li>Major (x.0.0)</li>
<li>Minor (x.x.0)</li>
<li>Patch (x.x.x)</li>
</ul>
<p>At a single point of time, we develop the new "Major"/"Minor" version of Kubernetes (today - Kubernetes 1.9), and we support three existing release... |
<p>I'm wondering how can install a package inside the minikube VM. I need some tools.
I have tried the /bin/toolbox container, but It does not have internet conexion.</p>
<pre><code>[root@docker-fedora-24 ~]# dnf update --verbose
cachedir: /var/cache/dnf
DNF version: 1.1.9
Cannot download 'https://mirrors.fedoraprojec... | <p>Minikube is not meant to be tweaked. The advised method is to prepare a <a href="https://github.com/kubernetes/helm" rel="nofollow noreferrer">helm</a> chart for your application. As part of the helm chart you can add whatever tool you need in your docker file... Including make... Then you can install or upgrade you... |
<p>Im trying to create yaml for deployment with kubernetes. I am using a same script for different environment, which is separated with namespace. Now, I need to access the namespace name within the deployment yaml, such as </p>
<pre><code>"name":"$(namespace)"
</code></pre>
<p>in the yaml file. Is it possible to do ... | <p><em>edit</em> sorry, I may have misunderstood your question: if you want access to the current namespace in which the Pod is running, you can inject that into its environment via an <a href="https://kubernetes.io/docs/api-reference/v1.8/#envvarsource-v1-core" rel="nofollow noreferrer"><code>env: valueFrom:</code></a... |
<p>We run a Kubernetes cluster hosting a database, various microservices and an <code>nginx</code> reverse proxy, all in containers. We have a Google <a href="https://kubernetes.io/docs/concepts/services-networking/service/#type-loadbalancer" rel="nofollow noreferrer">load balancer</a> and a forwarding rule that forwar... | <p>What you are looking for is called <code>http proxy protocol</code></p>
<p><a href="https://www.nginx.com/resources/admin-guide/proxy-protocol/" rel="nofollow noreferrer">https://www.nginx.com/resources/admin-guide/proxy-protocol/</a></p>
<p>Note that both google load balancer and your nginx must be configured to ... |
<p>I have a doubt regarding how to structure my dockerized stack, simplified in two containers to get help here:</p>
<ul>
<li>static: NGINX serving static resources (JS/HTML).</li>
<li>rest: express.js backend for the REST Api.</li>
</ul>
<p>Without Kubernetes, just docker-compose on a node, <em>rest</em> is simply l... | <blockquote>
<p>With Kubernetes, I understand that I need to use the service name from
Kubernetes, something like "rest" (to make transparent the service
itself), but that name would only be visible from the docker container
serving the static resources.</p>
</blockquote>
<p>Your understanding is correct. <a h... |
<p>I'm trying to connect to my gke cluster using <code>kubernetes-incubator/client-python</code> library. I'm running just the basic query: </p>
<pre><code>from kubernetes import client, config
# Configs can be set in Configuration class directly or using helper utility
config.load_kube_config()
v1 = client.CoreV1Api(... | <p>This is an issue with your Google Cloud Platform credentials. They're not being found and you're not able to interact with the service. <a href="https://developers.google.com/identity/protocols/application-default-credentials" rel="nofollow noreferrer">Here's some instructions</a> on how to set those up. Either poin... |
<p>Using minikube and docker registry local.
Created and pushed local images to docker registry:</p>
<pre><code>$ curl http://localhost:5000/v2/_catalog
{"repositories":["app1"]}
</code></pre>
<p>Kubernetes config file:</p>
<pre><code>...
spec:
replicas: 3
template:
metadata:
labels:
app: app1
... | <p>This is a solution:</p>
<blockquote>
<p><a href="https://blog.hasura.io/sharing-a-local-registry-for-minikube-37c7240d0615" rel="nofollow noreferrer">https://blog.hasura.io/sharing-a-local-registry-for-minikube-37c7240d0615</a></p>
</blockquote>
<p>I followed it did:</p>
<pre><code>kubectl port-forward --namesp... |
<p>I'm running a Kubernetes cluster of 3 nodes with GKE. I ask Kubernetes for 3 replicas of <code>backend</code> pods. The 3 pods are not well dispatched among the nodes to provide a high-availability service, they are usually all on 2 nodes.
I would like Kubernetes to dispatch the pods as much as possible to have a po... | <p>Try setting up an preferred antiAffinity rule like so:</p>
<pre><code>affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: "app"
operator: In
values:
- "my_ap... |
<p>I'm trying to run Kubernetes on Windows using Minikube and Hyper-V. I've managed to succesfully run Minikube using <code>minikube start --vm-driver=hyperv --hyperv-virtual-switch=KuberNAT</code> and checking <code>minikube status</code> gives me</p>
<pre><code>PS > minikube status
minikube: Running
cluster: Runn... | <p>I've found the solution, it's suggested by a user in <a href="https://github.com/kubernetes/kubernetes/issues/24903#issuecomment-274319080" rel="nofollow noreferrer">this</a> github thread</p>
<blockquote>
<p>If anyone else ends up on this thread, the solution that worked for me
was updating the image pull poli... |
<p>I created a new cluster as per the <a href="https://learn.microsoft.com/en-us/azure/aks/kubernetes-walkthrough" rel="noreferrer">Azure guide</a> and created the cluster without issue but when I enter the <code>kubectl get nodes</code> to list the nodes I only get this response <code>Unable to connect to the server: ... | <p>Piling on: we are adding capacity as fast as possible for the preview. </p>
|
<p>Trying to make a bare metal k8s cluster to provide some services and need to be able to provide them on tcp port 80 and udp port 69 (accessible from outside the k8s cluster.) I've set the cluster up using kubeadm and it's running ubuntu 16.04. How do I access the services externally? I've been trying to use load-bal... | <h1>Service with NodePort</h1>
<p>Create a service with type <a href="https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport" rel="nofollow noreferrer"><code>NodePort</code></a>, Service can be listening TCP/UDP port 30000-32767 on every node. By default, you can not simply choose to expose a S... |
<p>In my company we have few public websites and many internal webapps. Currently they are are running in different AWS security groups.</p>
<p>Is it possible to run both kind of services on the same OpenShift cluster and make sure internal services are not accessible from the Internet?</p>
<p>Thanks!</p>
| <p>The traditional(?) way that is solved is through Internet-facing ELB/ALBs pointed to the NodePorts on the cluster. I personally haven't tried <code>Service</code> of <code>kind: LoadBalancer</code> since 1.2 to be able to speak to its functionality, but I do know kubernetes has a <strong>lot</strong> of users on AWS... |
<p>I'm new to kubernetes and I'm setting it up on azure. </p>
<p>I've created this script based on what I managed to find in the Azure documentation:</p>
<pre><code>#!/bin/bash
cd "$( dirname "$0" )"
source vars.sh
echo "Create group $KUBE_GROUP"
az group create \
--verbose \
--name $KUBE_GROUP \
--loc... | <p>I test your script in my lab, there is a mistake in your script.</p>
<p><code>{KUBE_NAME}mgmt.westeurope.cloudapp.azure.com</code> it should be <code>{KUBE_NAME}.westeurope.cloudapp.azure.com</code>. No need mgmt.</p>
<p>If you want to connect to the web UI, you need running</p>
<pre><code>az acs kubernetes get-c... |
<p>I am brand new to suiteCRM and I am trying to deploy into Minikube. I am using the helm charts in the K8s repo:</p>
<p><a href="https://github.com/kubernetes/charts/tree/master/stable/suitecrm" rel="nofollow noreferrer">https://github.com/kubernetes/charts/tree/master/stable/suitecrm</a></p>
<p>I am using the co... | <p>I never got the helm chart to work, but I did find a work around. Installing via traditional kubctrl worked fine. I used the method provided here:</p>
<p><a href="https://github.com/bitnami/bitnami-docker-suitecrm" rel="nofollow noreferrer">https://github.com/bitnami/bitnami-docker-suitecrm</a></p>
|
<p>A solution to retrieve all containers running in a pod is to run <code>kubectl get pods POD_NAME_HERE -o jsonpath={.spec.containers[*].name}</code>, however this command line does not provide the init containers.</p>
<p>Is there a way to cleanly retrieve all containers running in a pod, including init containers?</... | <p>The init containers are stored in <code>spec.initContainers</code>:</p>
<pre><code>kubectl get pods POD_NAME_HERE -o jsonpath={.spec.initContainers[*].name}
</code></pre>
<p>You can display both with a bit of <a href="https://kubernetes.io/docs/user-guide/jsonpath/" rel="noreferrer">JSONPath magic</a>:</p>
<pre><... |
<p>I want to know if it possible to view the content of a certificate that is currently loaded by NGINX.</p>
<p>The use case is in Kubernetes where a secret was changed with a new .key and .crt and I don't know if the pods have undergone a restart since the secret was changed.</p>
<p>I know its possible to view the c... | <p>My advice would be to access the server and get the certificate that returns. This answer uses openssl and should work for your case: <a href="https://serverfault.com/a/661982/380575">https://serverfault.com/a/661982/380575</a></p>
|
<p><br>
I'm new in using kubernetes and I need to know how can I install and use kubernetes with different nodes using ubuntu 14.04,<br>
because all what I found is aroud ubuntu 16.04.<br>
There is a huge difference between the two version concerning kubernetes.<br>
I need to have a master and two slaves(using the sam... | <p>Kubernetes makes use of systemd, which is not available in Ubuntu 14.04. While it is possible to install in Ubuntu 14.04, you would have to do some magic in order to make it work. You can find more info here: <a href="https://stackoverflow.com/questions/44302071/how-to-install-latest-kubernetes-in-ubuntu-14">How to ... |
<p>I'm unable to find good information describing these errors:</p>
<pre><code>[sarah@localhost helm] helm install statefulset --name statefulset --debug
[debug] Created tunnel using local port: '33172'
[debug] SERVER: "localhost:33172"
[debug] Original chart version: ""
[debug] CHART PATH: /home/helm/statefulset/
... | <p><a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/" rel="nofollow noreferrer">StatefulSets</a> objects has different structure than Pods are. You need to modify your yaml file a little:</p>
<pre><code>apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: "{{.Values.PrimaryName}}"... |
<p>I am looking for a kubernetes equivalent of <code>docker -v</code> for mounting the volumes in gcloud.</p>
<p>I am trying to run my container using google-container-engine which uses kubectl to manage clusters. In the kubectl run command I could not fund any provision for mounting the volumes.</p>
<pre><code> kube... | <p>As at the moment, It's not possible to mount a persistent Volume in a container by using imperative ways or using generators command (run, expose).Therefore, You could use declarative way to get it done. </p>
<p>Kubernetes provides 2 abstractions for storage in a cluster which are persistent volume claim (PVC) and... |
<p>Clients are connecting to API gateway server through websocket connection. This server just orchestrates swarm of cloud functions, that are handling all of the data requesting and transforming. Server is statefull - it holds essential session data, which is defining, for example, what cloud functions are allowed to ... | <p>There is a parameter available for load balancer that allows you to do what you are looking for: <a href="https://cloud.google.com/compute/docs/load-balancing/http/backend-service#backend_service_components" rel="nofollow noreferrer">Session affinity</a>. </p>
<p>"Session affinity if set attempts to send all networ... |
<p>I am just beginning my journey to docker and am trying to put together the image of how to deploy docker to production instances in the cloud. We use ansible for all of our applications deployments currently. However, when I look for information on deploying docker containers I see either references to swarm and kub... | <p>I worked on a container based platform 4 years ago and at the time, we used Ansible to deploy containers as orchestration frameworks were non existent. </p>
<p>Nowadays, I would recommend using an orchestration framework (Kubernetes, Docker Swarm, Openshift, etc.) which provides features such as ingress load balanc... |
<p>i have a question on the kubernetes DNS lookup, if i am using in my services deployment "dns" instead of "env", </p>
<p>Can my microservice using another microservices in the cluster get the dns names of all the microservices?</p>
<p>I get this piece of code, if I use <code>env</code> then I get the the info of ho... | <p>First off this is <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#supported-dns-schema" rel="noreferrer">documented throughly</a>. In any case if you want to query DNS to find out where things are running you can do so if you know the service name by pointing at:</p>
<pre><code>my-... |
<p>I have a couple of tiny containers with a very small memory footprint and little traffic. I think it's overkill and too expensive to have a separate pod for each of them.</p>
<p>I currently deploy containers by simply pushing Docker images to the <em>OpenShift Online</em> Container Registry. OpenShift rebuilds and ... | <p>I don't know what kind of disadvantages you have in mind when creating multiple pods. The overhead of a Pod vs a Container is negligible.</p>
<p>But putting multiple applications into a single pod clearly has disadvantages:</p>
<ul>
<li>if you want to restart a single container, you need to restart all of them</li... |
<p>I keep seeing this error:</p>
<pre><code>Events:
FirstSeen LastSeen Count From SubObjectPath Type Reason Message
--------- -------- ----- ---- ------------- -------- ------ -------
12s 2s 12 {statefulset } Warning FailedCreate create ... | <p>Take a look at this document titled: <a href="https://docs.openshift.org/latest/admin_guide/manage_scc.html#how-do-i" rel="nofollow noreferrer">Managing Security Context Constraints</a>.</p>
<p>The service account associated with the statefulset must be granted a security context constraint sufficient to allow the ... |
<p>I have a brand new Kubernetes v1.8 cluster with two nodes (RBAC enabled). Jenkins is deployed as a StatefulSet and recommended ServiceAccount/Role and RoleBindings were created as well (<a href="https://github.com/jenkinsci/kubernetes-plugin/tree/master/src/main/kubernetes" rel="nofollow noreferrer">from here</a>). ... | <p>Answering my own question: the problem was with my proxy settings. You need to specify instance IP in no_proxy environment variable during cluster setup.</p>
|
<p>We are experimenting with Kubernetes. Already have developed bunch of Spring boot Microservices which are ready to be integrated with kubernetes. </p>
<p>We would like to keep dev environment (local) simple and not complicate developers with running local kubernetes clusters/ building images etc. </p>
<ol>
<li>Is ... | <p>Kubernetes relies on its API servers for all operations. You can use <a href="https://kubernetes.io/docs/api-reference/v1.8/#-strong-api-overview-strong-" rel="nofollow noreferrer">this API</a> to query/do anything within Kubernetes.</p>
<ol>
<li><p>Get a configmap with the API: <code>GET /api/v1/namespaces/{namesp... |
<p>In Kubernetes object metadata, there are <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata" rel="noreferrer">the concepts of <code>resourceVersion</code> and <code>generation</code></a>. I understand the notion of <code>resourceVersion</code... | <p>resourceVersion changes on every write, and is used for optimistic concurrency control</p>
<p>in some objects, generation is incremented by the server as part of persisting writes affecting the <code>spec</code> of an object.</p>
<p>some objects' <code>status</code> fields have an <code>observedGeneration</code> s... |
<p>I have a setup where docker ONLY works as root (I know, my fault). I'm trying to follow the GCR quickstart: [1]. I can't find anything on the troubleshooting page [2] either.</p>
<p>Can you help me (and I can then file a document fix)?</p>
<p>[1] <a href="https://cloud.google.com/container-registry/docs/quickstart... | <p>There are a few options, the best being to just make docker usable without root: <a href="https://docs.docker.com/engine/installation/linux/linux-postinstall/" rel="nofollow noreferrer">https://docs.docker.com/engine/installation/linux/linux-postinstall/</a></p>
<p><strong>Option 1: Specify your full path to gcloud... |
<p>Running a GKE cluster with 1.8.1 - when I look at <code>/logs/kube-apiserver-audit.log</code>, it's completely empty. I've taken actions like creating deployments and deleting pods that have been visible in audit logs for clusters I've provisioned outside of GKE.</p>
<p>Is there a better way to view or access these... | <p>That would be because Container Engine 1.8 release does not enable the audit logging feature yet. From <a href="https://cloud.google.com/container-engine/release-notes" rel="nofollow noreferrer">Release Notes</a>:</p>
<blockquote>
<p>KNOWN ISSUE: Audit Logging, a beta feature in Kubernetes 1.8, is currently not e... |
<p>I initialized the master node and add 2 worker nodes, but only master and one of the worker node show up when I run the following command:</p>
<pre><code>kubectl get nodes
</code></pre>
<p>also, both these nodes are in 'Not Ready' state.
What are the steps should I take to understand what the problem could be?</p... | <p>First, describe nodes and see if it reports anything:</p>
<p><code>$ kubectl describe nodes</code></p>
<p>Look for conditions, capacity and allocatable:</p>
<pre><code>Conditions:
Type Status
---- ------
OutOfDisk False
MemoryPressure False
DiskPressure False
... |
<p>I have a cluster on google cloud container engine with 6 <code>n1-standard-1</code> machine.</p>
<p>I deployed several services and pod on this cluster and sometime they fail with the only reason <code>FailedSync</code> and no more explanation, I have no idea why they fail. Virtual machine are not overloaded, only ... | <p>I finally found the reason of the node failures. I use a glusterfs volume with the https://eventstore.org/ database and I think the latency make it fails, I saw lot of slow queries in the eventstore logs. I don't really know what happen but since I use a persistent ssd disk in the same region of my cluster I have no... |
<p>I have <code>container_fs_usage_bytes</code> with prometheus to monitor container root fs, but it seems that there is no metrics for other volumes in cAdvisor.</p>
| <p>I confirmed that Kubernetes 1.8 expose metrics for prometheus.</p>
<ul>
<li><code>kubelet_volume_stats_available_bytes</code></li>
<li><code>kubelet_volume_stats_capacity_bytes</code></li>
<li><code>kubelet_volume_stats_inodes</code></li>
<li><code>kubelet_volume_stats_inodes_free</code></li>
<li><code>kubelet_volu... |
<p>I have a setup where docker ONLY works as root (I know, my fault). I'm trying to follow the GCR quickstart: [1]. I can't find anything on the troubleshooting page [2] either.</p>
<p>Can you help me (and I can then file a document fix)?</p>
<p>[1] <a href="https://cloud.google.com/container-registry/docs/quickstart... | <p>Jake suggests: <code>gcloud docker</code> is on the deprecation path, for this reason among others. </p>
<p>I'd recommend doing <code>gcloud components install docker-credential-gcr</code>
followed by <code>which docker-credential-gcr</code>, <code>cp</code>ing the binary to a location
on root's PATH. </p>
<p><c... |
<p>I've created a Kubernetes cluster using CoreOS on AWS and I'm having trouble communicating with nodes from the master.</p>
<p>For example, operations like <code>kubectl exec</code> or <code>kubectl logs</code> fail an error similar to the following:</p>
<pre><code>Error from server: dial tcp: lookup ip-XXX-X-XXX-X... | <p>Have you made sure you're using the right context?</p>
<pre><code>kubectl config use-context my-cluster-name
</code></pre>
|
<p>I'm experiencing that the Kubernetes API server fails to start during cluster bootstrapping with the following error log, apparently due to being unable to initialize its "client CA configmap": </p>
<pre><code>E1029 14:35:56.211083 5 client_ca_hook.go:78] Timeout: request did not complete within allowed durat... | <p>I found out that despite the cryptic error message in the API server, the cause is that it can't write to the etcd cluster. The reason was that the API server was configured with a different client certificate authority than what the etcd cluster was using, due to a timing issue wrt. copying certificates in my Terra... |
<p>I'm using a CI to update my kubernetes cluster whenever there's an update to an image. Whenever the image is pushed and has the latest tag it kubectl apply's the existing deployment but nothing gets updated.</p>
<p>this is what runs
<code>$ kubectl apply --record --filename /tmp/deployment.yaml</code></p>
<p>My goal... | <p>As others suggested, have a specific tag.
Set new image using following command</p>
<p>kubectl set image deployment/deployment_name deployment_name=image_name:image_tag</p>
<p>In your case it would be</p>
<p>kubectl set image deployment/api api=us.gcr.io/joule-eed41/api:0.1</p>
|
<p>Is there a Nginx Ingress Controller Docker image available for ARM32, which will run on a Raspberry PI 3?</p>
<p>I have tried this:</p>
<pre><code>$ docker run gcr.io/google_containers/nginx-ingress-controller:0.8.3
standard_init_linux.go:195: exec user process caused "exec format error"
</code></pre>
<p>Is there... | <p>Support for arm64 was introduced with <a href="https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.9.0-beta.12" rel="nofollow noreferrer">0.9.0-beta.12</a>. I don't believe there's an arm32 compatible release.</p>
<p>As for how to know which images or tags are available on gcr you can either run these:... |
<h1>kubectl create -f web.yml</h1>
<h1>kubectl get pods -o wide</h1>
<p>NAME READY STATUS RESTARTS AGE IP NODE
httpd 0/1 ContainerCreating 0 1h kube-node2</p>
<p>[root@kube-master pods]# kubectl get pods -o wide
NAME READY STATUS ... | <p>I encounter the same problem, and i found that i not install rhsm related software on machine, you can execute command "yum install <em>rhsm</em>" to solve this problem.</p>
|
<p>Kubernetes Cluster Autoscaler versions are <a href="https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md#which-version-on-cluster-autoscaler-should-i-use-in-my-cluster" rel="nofollow noreferrer">tightly coupled</a> to Kubernetes versions. How can I check what version of Cluster Autoscaler i... | <p>There's no endpoint in the cluster autoscaler that prints it's version, including <code>/health-check</code> and <code>/metrics</code>. The only place I could find that referenced a version number was <a href="https://github.com/kubernetes/autoscaler/blob/da224d4db9fc6269914e0cd1d662b923b2dc7789/cluster-autoscaler/m... |
<p>I have deleted my elasticsearch cluster, but now after I've deployed a new cluster I need to access the old data that was stored on 3 Persistent Volumes PV described bellow: </p>
<pre><code>NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
s... | <p>Your <code>deployment</code> yaml file is correct. You should be able to find files from <code>pvc-19429b0b-ba42-11e7-979d-42010a840ff7</code> volume inside <code>/data</code> folder in your pod.</p>
<p>In order to use three PV in the same POD just add them to your <code>deployment</code> yaml:</p>
<pre><code>apiV... |
<p>I have a n00b question about setting up gitlab on a kubernetes. I'm running a basic <a href="https://github.com/kubernetes/minikube" rel="nofollow noreferrer">minkube</a> cluster on my home machine and I want to install gitlab onto it. The setup instructions <a href="https://docs.gitlab.com/ee/install/kubernetes/g... | <p>You'll be setting it up with a nodeport and can access it normally through that. If you really want a DNS entry you can just add one in your hosts file at <code>/etc/hosts</code>:</p>
<pre><code>[minikube ip] myfakelocalgitlabendpoint.com
</code></pre>
<p>You can get minikube's IP by running <code>minikube ip</cod... |
<p>Not sure how to name it, but having a rails app, and using sidekiq; I'd like to be able to view both sidekiq and rails logs when running <code>kubectl logs {podname}</code></p>
<p>Is that even possible ? is there another possibility (like extra commands to logs specific sources) ? Just wondering where to start inve... | <p>You should run your rails app in one container and sidekiq in another container. Both of them can run in the same pod. Assuming they're are indeed in the same pod but different containers then you can get each of their logs with the appropriate:</p>
<pre><code>kubectl logs my-pod -c my-container
</code></pre>
<p>I... |
<p>i would like to parse kubernetes manifest file (json/yaml) and be able to convert them to k8s structures (to later on manipulate them)</p>
<p>I know there is the NewYAMLOrJSONDecoder().Decode() function (<a href="https://github.com/kubernetes/apimachinery/blob/master/pkg/util/yaml/decoder.go" rel="noreferrer">https... | <p>Thanks svenwltr, I was not aware we can do like this.</p>
<p>In the same time, I manage to find not a better approach but a different one:</p>
<pre><code>package main
import (
"flag"
"fmt"
"os"
"io"
"path/filepath"
"log"
"encoding/json"
//"time"
metav1 "k8s.io/apimachinery/pkg... |
<p>I discovered that, until a few months ago, <a href="https://github.com/kubernetes/kubernetes/issues/23920" rel="nofollow noreferrer">the "hostPort" configuration for Pods was not going to work with CNI based integrations</a>. This meant that, for any Kubernetes cluster using Calico, it was not possible to directly e... | <p>What you have looks reasonable as far as the contents, I think the problem may be that you need to change the name of the config file from ending in <code>.conf</code> to <code>.conflist</code>. There is a PR up with some WIP changes <a href="https://github.com/projectcalico/calico/pull/903" rel="nofollow noreferrer... |
<p>I'm currently using Solr Cloud 6.1, the following behavior can also be observed until 7.0.</p>
<p>I'm trying to create a Solr collection with 5 shards and a replication factor of 2. I have 5 physical servers. Normally, this would distribute all 10 replicas evenly among the available servers. </p>
<p>But, when star... | <p>The solution was actually quite simple (but not really documented):</p>
<p>When creating a <code>Service</code> in OpenShift/Kubernetes, all matching Pods get backed by a load balancer. When all Solr instances get assigned an unique hostname, this hostnames would all resolve to one single IP address (that of the lo... |
<pre><code>apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: node-timer-analytics-parser-cronjob
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: node-timer-analytics-parser-cronjob
image: round0.azurecr.io/node-timer-analyt... | <p>Presumably you are running Kubernetes 1.8, according to the <a href="https://cloud.google.com/container-engine/release-notes" rel="nofollow noreferrer">release notes</a> 1.7.8 is the default version run in GKE. You can check which version you are running by using <code>kubectl version</code></p>
<p>If you are runni... |
<p>After a few days of testing Azure aks, I find myself in a situation where existing aks instances don't clean up when I delete the parent resource group (or with az aks delete) and I am also unable to create new aks instances. Has anyone encountered the same issue?</p>
<p>Curent state:</p>
<pre><code>rbigeard@ROMAI... | <p>Apologies for the service disruption. There was a provisioning/capacity issue that impacted the regional Kubernetes service which was resolved today. You can view the resolution updates @ <a href="https://github.com/Azure/AKS/issues/2" rel="nofollow noreferrer">https://github.com/Azure/AKS/issues/2</a> </p>
<p>Acti... |
<p>I'm debugging log output from kubectl that states:</p>
<pre><code>Error from server (BadRequest): a container name must be specified for pod postgres-operator-49202276-bjtf4, choose one of: [apiserver postgres-operator]
</code></pre>
<p>OK, so that's an explanatory error message, but looking at my JSON template it... | <p>If a pod has more than 1 containers then you need to provide the name of the specific container. </p>
<p>in your case, There is a pod (postgres-operator-49202276-bjtf4) which has 2 containers (apiserver and postgres-operator ).
following commands will provide logs for the specific containers </p>
<pre><code>kubect... |
<p>I'm extremely new to Kubernetes (besides it's not my field) but I got required to be able to execute this practice.</p>
<p>Question is that I need a Handbrake Converter in a containerized pod with a Persistent Volume mounted on a GKE cluster:</p>
<ul>
<li>3 nodes.</li>
<li>node version 1.8.1-gke.1</li>
<li>node im... | <p>To transfer local files to a kubernetes pod, use <code>kubectl cp</code>:</p>
<pre><code>kubectl cp /root/my-local-file my-pod:/root/remote-filename
</code></pre>
<p>or</p>
<pre><code>kubectl cp /root/my-local-file my-namepace/my-pod:/root/remote-filename -c my-container
</code></pre>
<p>The namespace can be omitted... |
<p>I have a nodeJS api which uses a mongoDb. I deploy the application in a kubernetes cluster.
Here you can find the kubernetes yml files <a href="https://github.com/daumann/chronas-api/tree/azure/kuberneties" rel="nofollow noreferrer">https://github.com/daumann/chronas-api/tree/azure/kuberneties</a></p>
<p>Now I wan... | <p>Assuming you already launched your cosmos-db through Azure, you will need to use the generated connection string that you can pass to your application as a secret (since it contains a password). The connection string is of the format:</p>
<pre><code>mongodb://username:password@host:port/[database]?ssl=true
</code><... |
<p>After a few days of testing Azure aks, I find myself in a situation where existing aks instances don't clean up when I delete the parent resource group (or with az aks delete) and I am also unable to create new aks instances. Has anyone encountered the same issue?</p>
<p>Curent state:</p>
<pre><code>rbigeard@ROMAI... | <p>For now, we can create AKS in west US 2, it is working now.</p>
<p><a href="https://i.stack.imgur.com/VsA1z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VsA1z.png" alt="enter image description here"></a></p>
|
<p>I am interested in the behaviour of multi-master Kubernetes in the event of different types of failure, particularly if the masters are on different racks.</p>
<ul>
<li><p>Scenario:</p>
<ul>
<li><p>2 racks, R1, R2.</p></li>
<li><p>API Masters:</p>
<ul>
<li>M1 on R1, M2 on R2.</li>
</ul></li>
<li><p>Worker nodes:<... | <p>The master holds a lease in etcd. If the lease expires, the active master exits it’s process (expects to restart). The other master would observe the lease expiring and attempt to acquire it in etcd. As long as M2 can reach etcd and etcd has a quorum, the second master would then take over.</p>
<p>As far as comp... |
<p>Currently, I am migrating one of our microservice from K8S Deployment type to StatefulSets.
While updating Kubernetes deployment config I noticed StatefulSets doesn't support <code>revisionHistoryLimit</code> and <code>minReadySeconds</code>.</p>
<ol>
<li><code>revesionHistoryLimit</code> is used keep previous N nu... | <ol>
<li>You should define a readiness probe, and the master will wait for it to report the pod as Ready.</li>
<li>StatefulSets currently do not support rollbacks.</li>
</ol>
|
<p>I’m having really hard time trying to construct workflow with k8s that would include:</p>
<ul>
<li>Having <strong>monorepo</strong> for multiple microservices</li>
<li>Having <strong>single command to start</strong> all of them and being able to start local development</li>
<li>Having <code>docker-like</code> experi... | <p>I built something similar to what you're asking before. I ran <code>hyperkube</code> manually, which is hardly recommended but did the trick for local development. In my case this was all running in Vagrant for team uniformity.</p>
<pre><code>docker run -d --name=kubelet \
--volume=/:/rootfs:ro \
--... |
<p>I was trying out <code>Kubernetes</code> using <code>minikube</code> in a <code>VM</code> host using <code>KVM</code> as <code>VM Driver</code>.But it looks like I cannot use KVM on a vm host as virtualization will not be enabled on a VM host.</p>
<pre><code> $ egrep -c '(vmx|svm)' /proc/cpuinfo
0
</code></pre>
<... | <p>My advice would be to use <code>--vm-driver=none</code>. This will install all minikube binaries in host machine. While not all features are available, it should be enough for doing some testing. </p>
|
<p>I want to set up my web page to make HTTP2 requests to a Jetty API server. I read that browsers will only use the "h2" protocol, that is, HTTP2 with TLS. However, my setup has a kubernetes ingress performing SSL termination, and proxying a cleartext request back to the Jetty server. The dilemma is that I don't think... | <p>You can configure Jetty to serve clear-text HTTP/2 (also known as <code>h2c</code>), so that your setup will be:</p>
<p><code>browser -- h2 --> kubernetes tls termination -- h2c --> Jetty</code></p>
<p>In order to setup Jetty with clear-text HTTP/2, you just need to enable the <code>http2c</code> module if y... |
<p>I have a GKE service with load balancer, but I want to use it internally by my other services, e.g. <strong>I want public IP not to be assigned to it</strong></p>
<p>Is is it possible without private VPN and juggling over firewall settings?</p>
<p>All other load-balancing (like <code>kube-dns</code>) features work... | <p>GKE supports <a href="https://cloud.google.com/container-engine/docs/internal-load-balancing" rel="noreferrer">Internal Load Balancing</a> now:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
name: [SERVICE-NAME]
annotations:
cloud.google.com/load-balancer-type: "Internal"
labels:
app: echo
spec... |
<p>In several places on the Kubernetes documentation site they recommend that you store your configuration YAML files inside source control for easy version-tracking, rollback, and deployment. </p>
<p>My colleagues and I are currently in the process of trying to decide on the structure of our git repository. </p>
<ul... | <p>There is no established standard yet, I believe. I find helm's charts too complicated to start with, especially having another unmanaged component running on the k8s cluster. This is a workflow that we follow that works quite well for a setup of 15ish microservices, and 5 different environments (devx2, staging, qa, ... |
<p>Kubernetes kubelets can be run with a specific set of options (<a href="https://kubernetes.io/docs/admin/kubelet/" rel="nofollow noreferrer">https://kubernetes.io/docs/admin/kubelet/</a>). Is there a way to see, through kubectl or similar way, the options that kubelet was run with? </p>
<p>I basically want to know ... | <p>Use <code>ps x | grep kubelet</code> or <code>cat /proc/$(pidof kubelet)/cmdline</code> to get commandline.</p>
<p>If kubelet is installed by <code>apt</code> or <code>yum</code>, mostly it's working as a systemd service. </p>
<p>Take a look at files in <code>/etc/systemd/system/kubelet.service.d/</code> folder, w... |
<p>Follow this guide to install Kubernetes:</p>
<p><a href="https://www.linuxtechi.com/install-kubernetes-1-7-centos7-rhel7/" rel="nofollow noreferrer">https://www.linuxtechi.com/install-kubernetes-1-7-centos7-rhel7/</a></p>
<p>When went to <code>kubeadm init</code> step, got error:</p>
<pre><code>$ kubeadm init --s... | <p>The key point in logs <code>misconfiguration: kubelet cgroup driver: "systemd" is different from docker cgroup driver: "cgroupfs"</code></p>
<blockquote>
<p>Make sure that the cgroup driver used by kubelet is the same as the one used by Docker. </p>
<p>To ensure compatability you can either update Docker, ... |
<p>I'm new to java and k8, and I have some doubts about how to handle application configurations for my java apps. I've got one spring boot app and the other three use wildfly.</p>
<p>So, they all got hardcoded application configurations, and when starting them the just use something like:</p>
<pre><code>java -Dswar... | <p>There are several questions in the post, but I can address only the one related to spring-boot. </p>
<p>The simplest and the most convenient way of specifying configurations to spring boot app is via its built in profiling feature. As you already mentioned you have <code>application.properties</code>. You can creat... |
<p>I am trying to use kubectl run command to pull an image from private registry and run a command from that. But I don't see an option to specify image pull secret. It looks like it is not possible to pass image secret as part for run command. </p>
<p>Is there any alternate option to pull a container and run a comman... | <p>You can use the overrides if you specify it right, it's an array in the end, that took me a bit to figure out, the below works on Kubernetes of at least 1.6:</p>
<p><code>--overrides='{ "spec": { "template": { "spec": { "imagePullSecrets": [{"name": "your-regist... |
<p>I've created an AKS cluster in the UK region in Azure.</p>
<p>Currently, I can no longer access my AKS cluster. Connecting to the public IPs fails; all connections time out.</p>
<p>Furthermore, I can't run the <code>kubectl</code> command either:</p>
<p><code>fcarlier@ubuntu:~$ kubectl get nodes
Unable to connec... | <blockquote>
<p>Is there a known issue with AKS in that region or is it something on
my side?</p>
</blockquote>
<p>Sorry to give you a bad experience.<br>
For now, Azure AKS still in preview, please try to <strong>recreate</strong> it, ukwest works fine now.</p>
<p>Here is a similar <a href="https://github.com/Az... |
<p>I am trying to create Deployment from <code>client-go</code> but it is not creating and throwing an error as</p>
<pre><code>the server could not find the requested resource
</code></pre>
<p><em>My <code>client-go</code> version:</em> 4.0.0</p>
<p><em>My Kubernetes version is:</em></p>
<p><strong>Client Version:<... | <p>apps/v1beta1 will not work in 1.5, its supported from 1.6. I used extensions/v1beta1 to access deployments in 1.5.</p>
|
<p>I'm trying to figure out, what is import/export best practices in K8S keycloak(version 3.3.0.CR1). Here is keycloak official page <a href="http://www.keycloak.org/docs/2.0/server_admin_guide/topics/export-import.html" rel="nofollow noreferrer">import/export</a> explanation, and they example of export to single file ... | <p>Basically, you just have to start the exporting Keycloak instance on ports that are different from your main instance. I used something like this just now:</p>
<p><code>bin/standalone.sh -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=keycloak-export.json -Djbos... |
<p>I am developing an <strong>ETL</strong> batch application using spring batch. My ETL process takes data from one pagination based REST API and loads it to the Google Big-query. I would like to deploy this batch application in kubernetes cluster and want to exploit pod scalability feature. I understand spring batch s... | <p>I have used Spring Boot with Spring Batch and Spring Cloud Task to do something similar to what you want to do. Maybe it will help you.</p>
<p>The way it works is like this: I have a manager app that deploys pods on Kubernetes with my master application. The master application does some work and then starts the rem... |
<p>In one of my HTTP(S) LoadBalancer, I wish to change my backend configuration to increase the timeout from 30s to 60s (We have a few 502's that do not have any logs server-side, I wish to check if it comes from the LB)</p>
<p>But, as I validate the change, I got an error saying </p>
<blockquote>
<p>Invalid value ... | <p>I faced the same issue and @tmirks 's fix didn't work for me.</p>
<p>After experimenting with GCE for a while, I realised that the issue is with the service.</p>
<p>By default all services are <code>type: ClusterIP</code> unless you specified otherwise.</p>
<p>Long story short, if your service isn't exposed as <c... |
<p>I am new to azure. I created an azure acs with kubenetes by using the following config(part of the whole file). </p>
<pre><code> - apiVersion: v1
kind: Service
metadata:
name: my-web
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 3000
selector:
app:... | <blockquote>
<p>Just asking if there is a way to generate some stable dns for acs
services?</p>
</blockquote>
<p>We can via Azure portal to change the public IP address to static, in this way, restart the service will not change the IP.</p>
<p>But in Azure, if we <strong>delete</strong> the k8s service, the Publi... |
<p>In Kubernetes cluster installed Prometheus using:</p>
<pre><code>helm install stable/prometheus
</code></pre>
<p>It succese:</p>
<pre><code>kubectl get pods
NAME READY STATUS RESTARTS AGE
winsome-otter-prometheus-alertmanager-3488774855-mk4ph ... | <p>You need to forward port 9090 from your localhost to prometheus pod first:</p>
<pre><code>export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace default port-forward $POD_NAME 9090
</code></pre>
<p>Now you can access ... |
<p>somebody could please help me to create a yaml config file for Kubernetes in order to face a situation like: one pod with 3 containers (for example) and these containers have to be deployed on 3 nodes of a cluster (Google GCE).</p>
<pre><code>|P| |Cont1| ----> |Node1|
|O| ---> |Cont2| ----> |Node2| &l... | <p>From <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/" rel="nofollow noreferrer">Kuberenets Concepts</a>,</p>
<blockquote>
<p>Pods in a Kubernetes cluster can be used in two main ways: <strong>Pods that
run a single container</strong>. The “one-container-per-Pod” model is the most
com... |
<p>I am new to kubernetes. here I have some confusions about the CA certificates used in a kubernetes cluster. As far as I know there are several CA certificates in kubernetes, but still not clear what each functionality of them. Here is my understanding of them, but still not sure of them. </p>
<ol>
<li><p>Root CA a... | <p>A good summary is at <a href="https://github.com/kubernetes/kubernetes/issues/54665#issuecomment-340960398" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/issues/54665#issuecomment-340960398</a></p>
<p>The request header CA is used to verify a client cert presented by an authenticating proxy alo... |
<p>My deployment JSON file have following entry from my image, where 49 is build number. I'm confused how do I use VSTS or kubectl to replace that number with each incremental build. VSTS provides command line options to cubectl command, is it possible to specify something like <code>cubectl -f file.json -imagetag $TAG... | <p>You can use <a href="https://kubernetes.io/docs/user-guide/kubectl/v1.8/#-em-image-em-" rel="nofollow noreferrer"><code>kubectl set image</code></a> to update container image of a resource.</p>
<p>For example: <code>kubectl set image -f file.json jietest=myreg.azurecr.io/jietest:$TAG</code>.</p>
|
<p>My current version of istio is 0.2.12.
I have a deployment that is deployed with istio kube-inject and tries to connect to a service/deployment inside of the kubernetes cluster that not uses Istio, how is it possible to allow access from the istio using deployment to the not istio using deployment.
In this case is t... | <p>You should be able to access all the kubernetes services (Istio-injected and the regular Kubernetes ones) from Istio-injected pods.</p>
|
<p>I setup a 3 nodes K8S cluster locally with virtualbox. When I try out the ingress, it doesn't setup the IP address:</p>
<pre><code>2017-11-11 17:00:49.015691 I | proto: duplicate proto type registered:
google.protobuf.Any
2017-11-11 17:00:49.016061 I | proto: duplicate proto type registered: google.protobuf.Durati... | <p>Are you running an Ingress controller? A minimal Kubernetes cluster does not have an Ingress controller by default. If not, try deploying this controller: <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx</a></p>
|
<p>We have a number of micro services in our eco system and a two of them deal with user data:</p>
<ul>
<li><p>user service -> </p>
<ul>
<li>POST /users</li>
<li>GET /users/[[:alnum:]]+</li>
</ul></li>
<li><p>documents service -> </p>
<ul>
<li>POST /users/[[:alnum:]]+/documents</li>
<li>GET /users/[[:alnum:]]+/docum... | <p>After lots of searching, it seems that what I was trying to do is not (yet) possible in ingress. I opened a <a href="https://github.com/kubernetes/ingress-nginx/pull/1415" rel="nofollow noreferrer">PR</a> with them and I am waiting to see if it will be merged. </p>
<p>I have not yet publicly deployed a version with... |
<p>I am using the <a href="https://www.terraform.io/docs/providers/kubernetes/index.html" rel="nofollow noreferrer">Kubernetes Provider</a> to describe services/pods in Terraform.</p>
<p>It can get confusing using the Hashicorp Configuration Language to define <a href="https://www.terraform.io/docs/providers/kubernete... | <p>While Terraform normally uses HCL, this is a superset of JSON (much like YAML itself) so <a href="https://www.terraform.io/docs/configuration/syntax.html#json-syntax" rel="nofollow noreferrer">can also read JSON</a>.</p>
<p>One possible option would be to take the YAML examples you already have and convert them int... |
<p>I created a new cluster as per the <a href="https://learn.microsoft.com/en-us/azure/aks/kubernetes-walkthrough" rel="noreferrer">Azure guide</a> and created the cluster without issue but when I enter the <code>kubectl get nodes</code> to list the nodes I only get this response <code>Unable to connect to the server: ... | <p>For now, Azure AKS still in preview. We have a general service outage in West US 2 that we are investigating.</p>
<p>During the time we investigate, cluster creations in West US 2 will <strong>not</strong> be possible and existing customers might not work. </p>
<p>We will <strong>update</strong> <a href="https://... |
<p>I have a project in west-1 on Openshift v3. In it I have an app that worked fine and one that stopped working following a GitHub committing something very downstream within the code. The issue is with making a pod: </p>
<pre><code>No nodes are available that match all of the following predicates::
Insufficient ... | <p>The message doesn't mean that the pod is requesting 173 CPUs.</p>
<p>The error message means that scheduling failed that on 173 machines there isn't enough CPU left available to fit the pod requests (see pod definition) and on 5 machines (nodes) it can't be scheduled because those nodes don't have the particular se... |
<p>I have a webapp running in a Docker-container in a Kubernetes cluster. The app has an endpoint I want to be called periodically. The app runs at multiple nodes/pods, and it is important that only one node performs the task initiated by the endpoint. I have looked at Kubernetes Cron Jobs, but have not found any docum... | <p><code>CronJob</code>s are a good choice. Here's a quick layout that runs 3 nginx pods accepting all traffic. Every minute, a <code>Job</code> curls 1 of the 3 pods (always the same pod).</p>
<pre><code>apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: main
labels:
app: nginx
spec:
replicas: 2
se... |
<p>I'm trying to scale out my deployments using openshift rest api, but I'm encountering the error "invalid character 's' looking for beginning of value".
I can successfully get the deployment config details but it's the patch request which is troubling me.
From the documents I have tried Content-Type as below 3 but no... | <p>Ok, I found out the issue. Silly thing first, data should be inside single quotes data = '{'spec':{'replicas':2}}'. </p>
<p>Then, we need few more info in our data, which finally looks like : </p>
<p>data = '{"kind":"Scale","apiVersion":"extensions/v1beta1","metadata":{"name":"deployment_name","namespace":"namespa... |
<p>I have installed Kubernetes Cluster (minikube) on my Windows 10 machine and seems to be running (ie: I can browse the minikube dashboard, etc).</p>
<p><a href="https://i.stack.imgur.com/uX3AZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uX3AZ.png" alt="kubernetes cluster status"></a></p>
<p>I... | <blockquote>
<p>rpc error: code = Unknown desc = image operating system "windows"
cannot be used on this platform</p>
</blockquote>
<p>Actually, we install kubernetes on windows 10 <strong>bash on Ubuntu</strong>, in this way, the bash on ubuntu works as a master, base on Linux, we can't run windows docker image o... |
<p>I have a two-cluster multi-region HA enabled in production working in MS Azure.</p>
<p>I was asked to reuse the same cluster to manage several new projects using Microservices.</p>
<p>What is the best practice here ? Should I create a cluster per app ? Is it better to isolate every project in different clusters an... | <p>I would suggest you slice and dice your cluster by using <strong>Namespaces</strong>.You can easily create a namespace by using the following command.</p>
<pre><code>kubectl create namespace my-project
</code></pre>
<p>Now you can feed your all manifest files (deployment, services, secrets, PersistentVolumeClaims)... |
<p>I would like to change the VM size of agents. I can't seem to do that from the CLI or by adjusting the Container Service. How can I change the size of the agents?</p>
| <blockquote>
<p>How can I change the size of the agents?</p>
</blockquote>
<p>We can change k8s agent via Azure portal, the agent in Azure is a VM, we should resize the VM :</p>
<p><a href="https://i.stack.imgur.com/g8G39.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g8G39.png" alt="enter image... |
<p>Using Kubernetes on Azure Container Service (not the new AKS though).</p>
<p>I'm deploying a front-end up like this:</p>
<pre><code>apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: frontend-deployment
spec:
selector:
matchLabels:
app: frontend
replicas: 2
template:
metadata:
la... | <blockquote>
<p>do you know how to change the agent VM size in an existing ACS
deployment?</p>
</blockquote>
<p>We can change k8s agent via Azure portal, the agent in Azure is a VM, we should <strong>resize</strong> the VM :</p>
<p><a href="https://i.stack.imgur.com/ixx5q.png" rel="nofollow noreferrer"><img src="... |
<p>In the context of the OpenShift 3.7 <a href="https://docs.openshift.com/container-platform/3.6/architecture/service_catalog/index.html" rel="nofollow noreferrer">Service Catalog</a>, what would it look like if I wanted to create Service Instances outside of the OpenShift Console UI?</p>
<p>I.e. from a terminal on m... | <p>The best examples I can point you to are the ones from <a href="https://github.com/kubernetes-incubator/service-catalog/blob/master/docs/walkthrough.md" rel="nofollow noreferrer">the incubator repo walkthrough</a>. You'll probably be most interested in the <a href="https://github.com/kubernetes-incubator/service-ca... |
<p>I deploy a 3 nodes k8s cluster on my local virtualbox. But I cannot find the external IP of the nodes:</p>
<pre><code>kubectl get nodes -o yaml | grep IP
2017-11-11 22:36:06.346458 I | proto: duplicate proto type registered: google.protobuf.Any
2017-11-11 22:36:06.346701 I | proto: duplicate proto type registered: ... | <p>I don't think the IP is exposed in the yaml file. You could do:</p>
<pre><code>kubectl get nodes -o wide
</code></pre>
|
<p>I had installed <em>minikube</em> a few months ago and wanted to upgrade as newer versions are available.</p>
<p>I am unable to find out how to upgrade <em>minikube</em>. I see a feature request for an upgrade command here - <a href="https://github.com/kubernetes/minikube/issues/1171" rel="noreferrer">https://githu... | <p>Before reinstall minikube (OS X), check the following:</p>
<ul>
<li><p>Make sure that you have <code>brew</code> updated: </p>
<pre><code>brew update
</code></pre></li>
<li><p>Make sure that you already have <code>cask</code> installed:</p>
<pre><code>brew cask install minikube --verbose
</code></pre></li>
</ul>
... |
<p>I can't delete this Stateful Set in Kubernetes, even with <code>--cascade=false</code> so it doesn't delete the Pods managed by it.</p>
<pre><code>kubectl get statefulsets
NAME DESIRED CURRENT AGE
assets-elasticsearch-data 0 1 31m
</code></pre>
<p>Then:</p>
<pre><code... | <p>Had a similar issue with k8s 1.8. Tried many times and it timedout.
Eventually I tried, </p>
<pre><code>kubectl delete statefulsets mariadb -n openstack --force
</code></pre>
<p><em>error: timed out waiting for "mariadb" to be synced</em></p>
<p>This appears to work :</p>
<pre><code>kubectl delete statefulsets ... |
<p>Using Kubernetes on Azure Container Service (not the new AKS though).</p>
<p>I'm deploying a front-end up like this:</p>
<pre><code>apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: frontend-deployment
spec:
selector:
matchLabels:
app: frontend
replicas: 2
template:
metadata:
la... | <p>It looks like the problem was a mis-specification of the targetPort. Adjusting it to the correct value and replacing the Service definition solved the problem.</p>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.