kubernetes-deployment Questions
6
I'm new on kubernetes.
I couldn't get deployments using kubectl but I can see all deployments on kubernetes dashboard. How can i fix this problem?
user@master:~$ kubectl get deployments
error: ...
Alluvion asked 15/3, 2019 at 13:42
3
Solved
When I define e.g. a deployment in Kubernetes there is a section with a list of containers and each of them contains an array of ports, e.g.:
apiVersion: apps/v1
kind: Deployment
spec:
template:
...
Independency asked 25/7, 2019 at 8:3
2
Solved
I want to set a boolean variable in configMap (or secret):
apiVersion: v1
kind: ConfigMap
metadata:
name: env-config
namespace: mlo-stage
data:
webpack_dev_server: false
But when I apply it, I ...
Schild asked 15/9, 2020 at 16:10
5
Solved
I've gone over the following docomentation page: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
The example deployment yaml is as follows:
apiVersion: apps/v1
kind: Deploym...
Lodicule asked 30/1, 2019 at 8:53
6
Solved
I have been trying to install nginx ingress using helm version 3
helm install my-ingress stable/nginx-ingress
But Helm doesn't seem to be able to find it's official stable repo. It gives the mes...
Environmentalist asked 17/9, 2019 at 8:26
1
Solved
I am currently using the following to attempt to spread Kubernetes pods in a given deployment across all Kubernetes nodes evenly:
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnor...
Standpipe asked 28/7, 2022 at 18:5
2
I have a scenario like below,
Have two releases - Release-A and Release-B.
Currently, I am on Release-A and need an upgrade of all the microservices to Release-B.
I tried performing the helm upgrad...
Spadework asked 21/4, 2021 at 12:43
1
Solved
The .spec.selector field defines how the Deployment finds which Pods to manage. But we also defines labels inside template then what is the extra things we are getting with .spec.selectors field be...
Jeffiejeffrey asked 19/10, 2021 at 7:17
3
I have written a bash script to get all deployments on a kubernetes cluster.
I have a command to scale all the deployments to zero.
The challenge I am having is that, I want to be able to loop thro...
Juglandaceous asked 30/9, 2020 at 7:41
2
Solved
When deciding on update strategy for a kubernetes application, there is an option to use Recreate strategy.
How would this be different from just uninstalling and installing the app?
Mattox asked 2/9, 2021 at 14:37
2
Solved
I see that Kubernetes Job & Deployment provide very similar configuration. Both can deploy one or more pods with certain configuration. So I have few queries around these:
Is the pod specifica...
Lombardi asked 24/8, 2021 at 11:32
4
Currently, we are building Docker images with an entrypoint and passing this image to a Kubernetes deployment.
Is there any way to pass the entrypoint directly to Kubernetes dynamically so that it...
Huonghupeh asked 13/12, 2019 at 16:46
2
Solved
We have a set of deployments (sets of pods) that are all using same docker image. Examples:
web api
web admin
web tasks worker nodes
data tasks worker nodes
...
They all require a set of enviro...
Wichman asked 15/4, 2018 at 19:27
2
Solved
I'm currently stuck and don`t know how to proceed.
This is my Spring Boot application.properties
...
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql:...
Alcatraz asked 25/4, 2018 at 11:6
1
Solved
I have been trying to debug a very odd delay in my K8S deployments. I have tracked it down to the simple reproduction below. What it appears is that if I set an initialDelaySeconds on a startup pro...
Strangles asked 2/12, 2020 at 17:23
1
Solved
I am fairly new to helm and kubernetes so I'm not sure if this is a bug or I'm doing something wrong. I have looked everywhere for answer however before posting and can't find anything that answers...
Mikaelamikal asked 23/6, 2020 at 14:20
18
Solved
I'm following that tutorial (https://www.baeldung.com/spring-boot-minikube)
I want to create Kubernetes deployment in yaml file (simple-crud-dpl.yaml):
apiVersion: apps/v1
kind: Deployment
metadat...
Waitabit asked 29/3, 2019 at 12:25
2
Solved
I'm trying to expose some of the container info as env variables reading the values from the pod's spec.template.spec.containers[0].name which seems to be not working. What would be the apiSpec for...
Dall asked 9/6, 2019 at 9:40
2
I understand that files / folders can be copied into a container using the command:
kubectl cp /tmp/foo_dir <some-pod>:/tmp/bar_dir
However, I am looking to do this in a yaml file
How wou...
Windom asked 7/3, 2020 at 21:9
6
Solved
I tried installing dgraph (single server) using Kubernetes.
I created pod using:
kubectl create -f https://raw.githubusercontent.com/dgraph-io/dgraph/master/contrib/config/kubernetes/dgraph-single...
Bogbean asked 21/11, 2018 at 5:23
2
Solved
I'm currently working on a Lumen project where we are using Minikube as our dev environment. Our host machine's /Users/development/<project name> is mounted at /var/www/html and is working fi...
Summerlin asked 26/12, 2019 at 5:9
1
Solved
I need to grant access to one deployment and all pods of this deployment using RBAC.
I've managed to configure Role and RoleBinding for the deploymet, and it's working fine:
---
kind: Role
apiVers...
Clack asked 24/12, 2019 at 8:26
2
Does kubectl drain first make sure that pods with replicas=1 are healthy on some other node?
Assuming the pod is controlled by a deployment, and the pods can indeed be moved to other nodes.
Current...
Bubonocele asked 15/12, 2019 at 11:6
2
I have a docker image from I am doing
docker run --name test -h test -p 9043:9043 -p 9443:9443 -d ibmcom/websphere-traditional:install
I am trying to put into a kubernetes deploy file and I hav...
Dictate asked 9/9, 2018 at 16:3
1
Solved
I'm using a nfs mounted volume in my deployments.
I need to give it the fsGroup like below:
securityContext:
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
Is there a way to make this on the ...
Cupric asked 30/7, 2019 at 16:21
1 Next >
© 2022 - 2024 — McMap. All rights reserved.