Member-only story
DEPLOYING MARIO ON AWS-EKS CLUSTER
2 min readDec 21, 2023
CREATING EKS CLUSTER
git clone https://github.com/CloudOps2029/AWS-EKS.git
- clone repo and use scripts to create EKS cluster
- Make sure to change security groups to allow traffic
- Mentioned are deployment/service/ingress file.
- 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