Kubernetes - Svet Paregov https://paregov.net Svetoslav (Svet) Paregov's Personal Web Site Sun, 26 Jun 2022 16:45:01 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://paregov.net/wp-content/uploads/2019/11/cropped-site_icon_512x512-32x32.png Kubernetes - Svet Paregov https://paregov.net 32 32 169379028 Switch Context in Kubernetes with Kubectl https://paregov.net/switch-context-in-kubernetes-with-kubectl/?utm_source=rss&utm_medium=rss&utm_campaign=switch-context-in-kubernetes-with-kubectl Sun, 26 Jun 2022 16:44:56 +0000 https://paregov.net/?p=9699 In Kubernetes Context is used to group all access parameters for a specific cluster under a convenient name in a kube config file. You can have multiple config files, but right now will focus on the case when you are using just one and all the contexts are in there.

Location of the default config file is

Linux: “~/.kube/config”
Windows: “$HOME\.kube\config”

The Context has three parameters: Cluster, Namespace and User.

When you use the kubectl it is using the current …

The post Switch Context in Kubernetes with Kubectl first appeared on Svet Paregov.

]]>
In Kubernetes Context is used to group all access parameters for a specific cluster under a convenient name in a kube config file. You can have multiple config files, but right now will focus on the case when you are using just one and all the contexts are in there.

Location of the default config file is

Linux: “~/.kube/config”
Windows: “$HOME\.kube\config”

The Context has three parameters: Cluster, Namespace and User.

When you use the kubectl it is using the current …

The post Switch Context in Kubernetes with Kubectl first appeared on Svet Paregov.

]]>
9699
Fix Unable to unprotect the message.State. exception on Identity Server redirect https://paregov.net/fix-unable-to-unprotect-the-message-state-exception-on-identity-server-redirect/?utm_source=rss&utm_medium=rss&utm_campaign=fix-unable-to-unprotect-the-message-state-exception-on-identity-server-redirect Thu, 06 Jan 2022 19:02:00 +0000 https://paregov.net/?p=9571 After fixing the 502 Bad Gateway issue I hit another one.

Here is the exception I have from the logs

HTTP POST /signin-oidc responded 500 in 77.6515 ms

System.Exception: An error was encountered while handling the remote login. —> System.Exception: Unable to unprotect the message.State. — End of inner exception stack trace — at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

As mentioned in the previous post – when I run from Visual …

The post Fix Unable to unprotect the message.State. exception on Identity Server redirect first appeared on Svet Paregov.

]]>
After fixing the 502 Bad Gateway issue I hit another one.

Here is the exception I have from the logs

HTTP POST /signin-oidc responded 500 in 77.6515 ms

System.Exception: An error was encountered while handling the remote login. —> System.Exception: Unable to unprotect the message.State. — End of inner exception stack trace — at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Serilog.AspNetCore.RequestLoggingMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

As mentioned in the previous post – when I run from Visual …

The post Fix Unable to unprotect the message.State. exception on Identity Server redirect first appeared on Svet Paregov.

]]>
9571