Enable Network Access to Application
Get hands on knowledge of enabling network access to an application on AKS cluster.
We'll cover the following...
The following steps can be used to enable network access to an application on the AKS cluster.
Create the service manifest file
We first need to create a server manifest file. The steps involved are described below.
Step 1: Create a YAML file
Create a YAML file using the command touch service.yaml
.
Step 2: Specify the apiVersion
and kind
We need to specify the apiVersion
and kind
attributes for the manifest that we create. The name
is the name of the service.
Press + to interact
#service.yamlapiVersion: v1kind: Servicemetadata:name: static-edu-website
Step 3: Specify the service type and selectors
Using the type
key, we need to specify the Kubernetes service we want to use. We can also add some labels using the selector
...