i am doing the first steps in k8, lets talk about a very easy application, and web server wi a page with and hello word.
let’s suppose I have a eks up and running.
how should I deploy my application, using Kubernetes manifests deployment or helm charts?
have you an example to deploy a web application in k8 ?
thanks in advance
Hi @jpor1974
Assuming you have the EKS cluster correctly configured, the very simplest application you can deploy consists of the following Kubernetes resourses
- A
Deployment
- this specifies a pod containing your service, and the number of service instances (replicas) you want to run in parallel
- A
Service
- this assigns internal load balancing to the pods of your application
- An
Ingress
- On EKS, when it is correctly configured, will auto-provision an Application Load Balancer that points to the above Service
to expose your application endpoint publicly.
For testing, then it’s quicker to just write manifests, but for production you should create a helm chart to package your application.
I recommend you take the KodeKloud CKAD course, as these concepts will quickly become clear.