Skip to content

Commit

Permalink
Added base
Browse files Browse the repository at this point in the history
  • Loading branch information
kostis-codefresh committed Mar 11, 2022
1 parent 22d6cee commit 8d9c9be
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
22 changes: 22 additions & 0 deletions base/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: simple-deployment
annotations:
codefresh.io/app: simple-go-app
spec:
replicas: 2
selector:
matchLabels:
app: trivial-go-web-app
template:
metadata:
labels:
app: trivial-go-web-app
spec:
containers:
- name: webserver-simple
image: docker.io/kostiscodefresh/simple-env-app:1.0
ports:
- containerPort: 8080
12 changes: 12 additions & 0 deletions base/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: simple-service
spec:
type: ClusterIP
selector:
app: trivial-go-web-app
ports:
- protocol: TCP
port: 80
targetPort: 8080

0 comments on commit 8d9c9be

Please sign in to comment.