Skip to content

Commit

Permalink
Merge pull request #4 from Delavalom/ft/eks-setup
Browse files Browse the repository at this point in the history
Setup aws auth changes to kubectl, add deployment and service yaml fi…
  • Loading branch information
Delavalom authored Oct 13, 2023
2 parents c1d8a94 + 27dd368 commit c51e171
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions eks/aws-auth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapUsers: |
- userarn: arn:aws:iam::669669085884:user/github-actions
username: github-actions
groups:
- system:masters
21 changes: 21 additions & 0 deletions eks/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rbd-api-deployment
labels:
app: rbd-api
spec:
replicas: 1
selector:
matchLabels:
app: rbd-api
template:
metadata:
labels:
app: rbd-api
spec:
containers:
- name: rbd-api
image: 669669085884.dkr.ecr.us-east-1.amazonaws.com/delavalom:latest
ports:
- containerPort: 8080
12 changes: 12 additions & 0 deletions eks/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: rbd-api-service
spec:
selector:
app: rbd-api
ports:
- protocol: TCP
port: 80
targetPort: 8080
type: LoadBalancer

0 comments on commit c51e171

Please sign in to comment.