Silver Light and Blue Sky

C# and Infrastructure. Code is everything.

Creating demo cluster for OpenShift Container Platform 3.5 on Azure

Here is what I did for creating my demo cluster for OpenShift Container Platform 3.5 on Azure.

  • Three masters with etcd (same hosts). These masters are also infra nodes.
  • One node (We can add more nodes later if we need)
  • One Azure Load Balancer with two public IP (master endpoint and router endpoint) We can’t separate these endpoints into two ALB because Azure doesn’t allow creating two or more ALBs with one backend pools.
Read more

resource file naming in ASP.NET Core localization

While I'm reading the document, I found difficulty in resource file naming.

Globalization and localization | Microsoft Docs

To summarize first:

  • "name" property of the project.json uses as the assembly name of the .NET Core project. The top level folder name is used if this property is not specified.
  • We must abbreviate the assembly name from the resource class FQDN if the FQDN starts with the assembly name.
  • We must use full FQDN if the FQDN doesn't start with the assembly name.
Read more

Configure IDistributedCache and IDataProtection for session in ASP.NET Core

Background

This blog describes two things.

  • How to store session data out of the ASP.NET Core process
  • How to separate the life cycle of session data from that of ASP.NET Core process and host

In the background, ASP.NET Core app can run as a container (docker) architecture. When ASP.NET Core app runs as a docker, it's easy to scale up and down. In this situation, we would like to store session data out of Docker containers and separate lifecycle. However, you may think if we can store session data out of the ASP.NET Core process, we can separate the lifecycle of session data from that of ASP.NET Core process and host at the same time. However, this is not necessarily so at present ASP.NET Core. I explain it based on the Microsoft's document.

Managing Application State | Microsoft Docs

Read more

Update OpenShift ASP.NET Core s2i to .NET Core 1.1 Preview1

OpenShift provides ASP.NET Core s2i image.

GitHub - openshift-s2i/s2i-aspnet: Source-to-Image template for ASP.NET applications GitHub - openshift-s2i/s2i-aspnet-example: Example projects for the ASP.NET builder image

Now .NET Core 1.1 Preview 1 is released.

blogs.msdn.microsoft.com

So I updated s2i image to .NET Core 1.1 Preview1. Here are the steps.

Read more