Deploy the IAN frontend
Docker Setup
- Build docker image
docker build -t SERVICE_NAME . --build-arg GITHUB_TOKEN=GITHUB_TOKEN
-
Replace SERVICE_NAME with your service name
-
Replace GITHUB_TOKEN with your Github Personal Access Token
noteRefer to this guide to learn how to generate your GITHUB_TOKEN (Personal Access Token).
- Configure Environment Variables
- Copy or rename the
.env.example
file intoenv
. - Provide the necessary variables inside the
.env
file.infoFor detailed information on environment variables, refer to this.
- Run docker image
docker run --env-file .env SERVICE_NAME
- Replace SERVICE_NAME with the service name you've set at step 1.
The IAN frontend service should now be running. You can access it using the host and port defined in the .env
file.
Kubernetes Setup
-
Navigate to the "deployments" directory.
-
Create the Deployment
kubectl apply -f deployment.yaml
This manifests file will instruct Kubernetes to deploy a Pod using ian-web
image from AGIL Ops Hub container registry.
- Create Service
kubectl apply -f service.yaml
This manifests file creates a ClusterIP
services for accessing IAN-WEB
pod. 4. Edit ingress.yaml
and change the value of the Host
field to the actual FQDN of your Kubernetes Cluster.
The example value in the ingress.yaml
is using nip.io
to create a FQDN to point to the Kubernetes Cluster.
To use nip.io
, simply replace 10.10.10.100
in the example value with the Ipv4 address of your Kubernetes Cluster.
- Create ingress
kubectl apply -f 03-ingress.yaml
Your IAN frontend service is now running with the host and port configured in the ingress (default is ian-web.localhost
).