Member-only story

DEPLOYING MARIO ON AWS-EKS CLUSTER

Ammar Suhail
2 min readDec 21, 2023

--

CREATING EKS CLUSTER

git clone https://github.com/CloudOps2029/AWS-EKS.git

  1. clone repo and use scripts to create EKS cluster
  2. Make sure to change security groups to allow traffic
  3. Mentioned are deployment/service/ingress file.
  4. Image used : sevenajay/mario:latest

apiVersion: apps/v1
kind: Deployment
metadata:
name: mario-deployment
spec:
replicas: 2 # You can adjust the number of replicas as needed
selector:
matchLabels:
app: mario
template:
metadata:
labels:
app: mario
spec:
containers:
— name: mario-container
image: sevenajay/mario:latest
ports:
— containerPort: 80
— -
apiVersion: v1
kind: Service
metadata:
name: mario-service
spec:
type: NodePort
selector:
app: mario
ports:
— protocol: TCP
port: 80
targetPort: 80

--

--

Ammar Suhail
Ammar Suhail

Written by Ammar Suhail

DevOps/ Cloud Engineer/AWS Certified/ CKAD Certified/ Terraform Certified/M.S Electrical & Computer Engineering (USA)

Responses (1)