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" {
...
3
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:
...
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 ...
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 ...
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 ...
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
...
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.
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....
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
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 ...
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:...
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 - ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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: ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
azure-kubernetes-service × 35kubernetes × 23
azure × 17
azure-devops × 7
ingress × 4
azure-pipelines × 3
nginx × 3
terraform × 2
persistent-volumes × 2
ingress-nginx × 2
docker × 1
jenkins × 1
containers × 1
deployment × 1
jenkins-plugins × 1
security × 1
monitoring × 1
aws-lambda × 1
postgresql × 1
serverless × 1
powershell × 1
flask × 1
credentials × 1
firewall × 1
bluegreen × 1