Posts

Showing posts with the label Network

Controlling Network Access in AKS using Network Policies

Image
One of the very first problems when starting to deploy workloads in Azure Kubernetes Service is the segregation of the network. By default, all pods are part of the same network and can communicate with each other. In the majority of the cases, however, we want to restrict network access between pods, namespaces, applications, etc. Fortunately, K8s provide a way to easily control network traffic, called Network Policies . There are two types of policies that can be applied to a pod, Ingress and Egress. Ingress-type policies control the traffic inbound to the pod, whilst egress control the traffic outbound from a pod. In this post, we're going to work only with ingress-type policies since the configuration and principles are pretty much the same, it's just the direction that changes. To demonstrate the use of policies, we are going to be using three namespaces and each namespace will contain a deployment with containers that respond to ping requests and also contain the ping uti...

Windows Server 2012 R2 Core Setup

In this article I will show you the commands I usually use in order to configure a newly set up Windows Server 2012 R2 system. I know there are may other ways to do this like sconfig or corefig but I prefer native Powershell command. Let's start by renaming the computer with the command below: Rename-Computer -NewName Server1 A small note here, the name of the computer will not change until you reboot. If you want to reboot right after the cmdlet above completes just add the -Restart parameter. Next, I'm going to set the product key: slmgr -ipk productkeystring After the step above I like to configure the network settings. Let's start with renaming the network adapters. That way it is easier to tell which adapter is connected to which network: Rename-NetAdapter -NewName LAB_Data After renaming the adapters, it's time to assign some IP addresses! New-NetIPAddress -IPAddress 10.0.0.12 ` -InterfaceAlias LAB_Data ` -DefaultGateway 10.0.0.1 ` ...