3,715
questions
0
votes
0
answers
10
views
How to simulate a terminal for the command ‘kubectl exec -ti blablabla’ on the client side
I am developing a web application that simulates a pod (EKS) terminal on the client side. The only solution I can think of is using sockets, but I am facing some issues:
The application has an API ...
0
votes
0
answers
14
views
Can we read k8 container logs using a sidecar container and without using kubectl?
Background: We are using third-party software (SASViya) that has multiple deployments, cronjob, stateful sets, and finally the pod templates which is responsible for creating new pods whenever a user ...
1
vote
1
answer
25
views
Delete Kubernetes namespace with delay
I have the following issue. We need to implement a command which deletes a Kubernetes namespace but with some delay of 1 hour. I tried with this one but it's not working:
kubectl delete ns $NAMESPACE -...
0
votes
1
answer
38
views
kubectl error "You must be logged in to the server (the server has asked for the client to provide credentials"
I am getting error when I run any kubectl command.
$ kubectl version
Client Version: v1.29.1
error: You must be logged in to the server (the server has asked for the client to provide credentials)
I ...
0
votes
1
answer
51
views
How to remove claim from a persistent volume when it was released?
After the PVC is deleted the associated PV still shows the claim. This might be expected behavior, but for my usecase it must turn to "Available" status again. When I remove the claim object ...
-1
votes
1
answer
39
views
error when creating "mongo.yaml": Deployment in version "v1" cannot be handled as a Deployment
I wrote a mongo.yaml file for a minikube cluster. Creating the deployment brought me an error that I can't decode for now. This is just a test deployment in preparation for a web app.
I tried editing ...
0
votes
0
answers
62
views
How to configure nginx-ingress access logs to see pod name
I have a general question regarding showing pod name into nginx-ingress access logs.
In my current access log setup, I have see only upstream IP address. However sometimes it`s not so informative ...
0
votes
0
answers
40
views
kubectl authentication without saved files
I need to call kubectl from within another program that has credentials in the Webhook Token Authentication format. Specifically, it's a Terraform configuration that uses the Terraform Kubernetes ...
0
votes
1
answer
44
views
How can I add worker node [TLS handshake timeout]?
I have a ubuntu-based master machine where I have a microk8s cluster running.
I wanted to add an rpi as a worker node. microk8s join worked and replied with
Waiting for this node to finish joining the ...
0
votes
0
answers
14
views
How can I combine end select elements into -ocustom-columns?
How to use -ocustom-colums to achieve the same effect as in the PORT(s) column of the kubectl get service command (i.e. using / to concatenate the values of the .spec.ports.port and .spec.ports....
0
votes
0
answers
24
views
How can a Flink Job automatically resume from a Checkpoint on a Redeploy
I'm hosting flink jobs on an EKS cluster and using Kubectl to create/update/delete flink jobs with a flink_deployment.yaml file.
We have checkpoints and HA stored in a remote AWS EFS storage which is ...
0
votes
0
answers
87
views
Kubectl ingress does not let access to the internet due to timeout error
I am trying to use ingress to make a pretty basic flask application reachable via internet.
First, I installed and enabled Ingress-Nginx
kubectl apply -f https://raw.githubusercontent.com/kubernetes/...
-1
votes
0
answers
23
views
I’m encountering the following error when trying to apply a Kubernetes manifest file using kubectl apply -f .github/workflows/manifests.yml:
Error from server (Forbidden): error when creating ".github/workflows/manifests.yml": namespaces is forbidden: User "arn:aws:iam::***:user/Opshub_EKS" cannot create resource "...
0
votes
1
answer
112
views
How to debug production containers using kubectl debug under root user?
I’m facing an issue related to our strict security policies, which are configured according to best practices. Below is the security context we are using:
spec:
securityContext:
runAsUser: <...
1
vote
1
answer
38
views
How can I configure my AKS cluster to only allow kubectl commands when connected to a specific Pritunl VPN
I want that when I am connected to my (Dev6) pritunl, I should be able to run kubectl commands on my AKS cluster and otherwise, I should not be able to.
I tried adding the specific IP range of my Dev6 ...