Skip to content

Commit

Permalink
refactor(support): kubernetes demo config
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev committed Aug 14, 2020
1 parent b02d446 commit d91ee2a
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
Empty file removed support/kubernetes/.gitkeep
Empty file.
27 changes: 27 additions & 0 deletions support/kubernetes/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: api
name: api
spec:
replicas: 1
selector:
matchLabels:
run: api
template:
metadata:
labels:
run: api
spec:
containers:
- image: dreamvo/gilfoyle:latest
imagePullPolicy: Always
name: api
ports:
- containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /health
port: 8080
13 changes: 13 additions & 0 deletions support/kubernetes/ingress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: api
spec:
rules:
- host: demo.gilfoyle.dreamvo.com
http:
paths:
- backend:
serviceName: api
servicePort: 8080
path: /
8 changes: 8 additions & 0 deletions support/kubernetes/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default

resources:
- deployment.yaml
- service.yaml
- ingress.yaml
14 changes: 14 additions & 0 deletions support/kubernetes/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
labels:
run: api
name: api
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
run: api
type: ClusterIP

0 comments on commit d91ee2a

Please sign in to comment.