Skip to content

Commit

Permalink
add deployment manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
kameshsampath committed Jan 14, 2023
1 parent b2f7098 commit 9fe8ee8
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
24 changes: 24 additions & 0 deletions config/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world
spec:
selector:
matchLabels:
app: hello-world
template:
metadata:
labels:
app: hello-world
spec:
serviceAccountName: hello-world
containers:
- name: hello-world
image: ghcr.io/kameshsampath/go-hello-world
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- name: http
containerPort: 8080
4 changes: 4 additions & 0 deletions config/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resources:
- sa.yaml
- service.yaml
- deployment.yaml
4 changes: 4 additions & 0 deletions config/sa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: hello-world
11 changes: 11 additions & 0 deletions config/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: hello-world
spec:
selector:
app: hello-world
ports:
- port: 8080
targetPort: http
name: http

0 comments on commit 9fe8ee8

Please sign in to comment.