Skip to main content
The 2024 Developer Survey results are live! See the results
4 votes
Accepted

Can't get either Postgres permissions or PVC working in AKS

The following setup works for me. When using the subPath in volumeMounts, the permission issue is automatically addressed, as the user postgres owns the folder corresponding to the subPath. spec: ...
kca2ply's user avatar
  • 156
3 votes

Nginx ingress controller redirects the url to /login

It just works Your configuration is correct. Provided YAML file generates nginx config like this: ... server { listen 80; server_name example.com; ... location ~* "^/service/test" { ...
Yasen's user avatar
  • 692
2 votes
Accepted

Ingress or LoadBalancer on AKS

just create an ingress resource along side each application, that way you can modify individual ingress resources without impacting other applications. Load balancers do not allow you to do anything ...
4c74356b41's user avatar
2 votes

Why will my container run in Docker, but will not run in Kubernetes?

To debug this, check the container logs and the container events. kubectl get pods Find your pod name. kubectl logs If logs don't make it obvious... kubectl get events If you deployed into a ...
John Humphreys's user avatar
2 votes

How do I expire users credentials for Kubernetes in Azure?

First How to check Check certificate expiration You can use the kubeadm alpha certs check-expiration command to check when certificates expire on a given cluster. Simplest remedy : you can choose to ...
DT.'s user avatar
  • 260
2 votes

Enable TLSv1 TLSv1.1 for specific Ingress with Nginx Ingress

The ConfigMap and Annotation configuration have different purposes. As per nginx-configuration/configmap/#ssl-protocols: Sets the SSL protocols to use. The default is: TLSv1.2 TLSv1.3 ...
Eduardo Baitello's user avatar
1 vote

How do I delete a default AKS node pool when I get an error saying it's the "backend address pool of the basic load balancer"

If my assumption is correct that's related to having a loadbalancer that wasn't correctly deleted. Which could be resulted by redeploying a service (of type: load balancer) in a short time before ...
weshouman's user avatar
  • 111
1 vote
Accepted

az aks browse doesn't open browser automatically on WSL and only showing JSON instead of the dashboard

I would expect it to work like az login and open up a new tab in default browser. But somehow it doesn't work like that. I think the fix must come from azure CLI. Temporarily, For az aks browse you ...
Ashish Verma's user avatar
1 vote

How do I expire users credentials for Kubernetes in Azure?

You would normally use an Azure AD object like a Service Principal to get the credentials for AKS using the az aks get-credentials command. To expire the aks credentials, you need to set a policy for ...
Karthick Prabu's user avatar
1 vote

Best approach to toggle app availability in azure?

You are looking for Serverless. The app will be auto-scaled up if there's a demand.
rokpoto.com's user avatar
1 vote

How can I use rewrite-target on the root path with Azure Kubernetes Service?

I had the same issue when trying Microsofts tutorial. Adding host under the rules section worked for me. Example: spec: ingressClassName: nginx rules: - host: {your_app}.northeurope.cloudapp....
Easwar AB's user avatar
1 vote
Accepted

connect to kind cluster from inside and outside

you add the server to balancer then create NAT rule to forward the packet to specific port on your VM. manage-port-forwarding-for-backend-pool-with-azure-load-balancer
Iyus Dedi Putra's user avatar
1 vote

AKS Network Policy - cannot deny traffic to namespace

If anyone else has the same issue, please double-check your AKS configuration in Azure and make sure that the Network policy filed in the Networking settings does NOT display None. It should say ...
Lubomir Krustev's user avatar
1 vote

how to specify the dependency in the deployment?

If I understand correctly this question is based on the problem I initially outlined here - https://worklifenotes.com/2020/03/04/microservices-combinatorial-explosion-of-versions/ So we've been ...
taleodor's user avatar
  • 900
1 vote
Accepted

evenly distribute pods over nodes

Found the answer. When the deployment has a yaml with the following labels. kind: Deployment metadata: name: revproxy labels: app: proxy spec: selector: matchLabels: role: proxy template:...
Serve Laurijssen's user avatar
1 vote

Read disk of distroless container in Kubernetes for debugging

which deploys containers based on Distroless Using Distroless is a good practice! This typically means that you don't have more than the absolute minimum in your container to run your application - ...
Jonas's user avatar
  • 1,025
1 vote

Nginx-Ingress Controller are compatible with Network Security Policy or not?

I don't think it is the compatibility, need to really see your configuration to be sure. But most likely, you block something wrongly. If you use the default network policy api networking.k8s.io/v1 ...
Tin Pham's user avatar
1 vote

Why will my container run in Docker, but will not run in Kubernetes?

It looks like your dockerfile has both CMD and ENTRYPOINT, so it’s highly likely that what gets invoked as a commsnd is pwsh -f /app/Start-Test.ps1 /app/Start-Test.ps1. It could be that this command ...
Alexey Skolyarov's user avatar
1 vote

Why will my container run in Docker, but will not run in Kubernetes?

K8s works with concept of Health Check, in your application you have some port or command/trigger that K8s can monitoring? Maybe because of that your container is not works.
Vader's user avatar
  • 466
1 vote

Error while using AzureFile storage with CockroachDB

AzureFile didn't support that operation, so I tried AzureDisk and it worked. This is what I used: apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: cockroach-disk namespace: ...
RQDQ's user avatar
  • 121
1 vote

Ingress or LoadBalancer on AKS

I generally use an Ingress for each application. This allows for any updates to it to be specified as a separate deployable unit. If there is a need for separate public IPs, you can have multiple ...
Marcus's user avatar
  • 401
1 vote
Accepted

nodes in a kubernetes cluster in azure unable to communicate with one another

With help from a Microsoft Engineer, we were able to resolve our issue. The trick to it was that the node that could communicate with the outside world was always the one that the kubernetes tunnel ...
Marshall Tigerus's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible