skip to Main Content

Docker – Allow scheduling multiple pod when we have anti affinity enabled

I have a deployment where I have added affinity as below - affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - example.com podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: component operator: In values: - myapp topologyKey:…

VIEW QUESTION

.NET 6 Docker: Why I can't see env variable in Docker container?

There is the next section in launchsettings.json of the ASP.NET Core Web API project: "Docker": { "commandName": "Docker", "launchBrowser": true, "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger", "environmentVariables": { "ASPNETCORE_URLS": "https://+:443;http://+:80", "MYSECRETS__MYDBPASSWORD": "MyPassValue" }, "publishAllPorts": true, "useSSL": true } I run the app in a…

VIEW QUESTION
Back To Top
Search