Skip to content

Commit

Permalink
Merge pull request #11 from ThingooKNI/feature/k8s
Browse files Browse the repository at this point in the history
Add webapp k8s config
  • Loading branch information
BartlomiejRasztabiga authored Feb 14, 2021
2 parents ca507b0 + 1901af6 commit 5345f0c
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
18 changes: 18 additions & 0 deletions k8s/dev/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: thingoo-webapp-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: "dev.thingoo.xyz"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webapp
port:
number: 8082
39 changes: 39 additions & 0 deletions k8s/dev/webapp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
name: webapp
name: webapp
spec:
replicas: 1
selector:
matchLabels:
name: webapp
strategy:
type: Recreate
template:
metadata:
labels:
name: webapp
spec:
containers:
- image: 'thingookni/webapp:${WEBAPP_TAG}'
imagePullPolicy: Always
name: webapp
ports:
- containerPort: 80
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
labels:
name: webapp
name: webapp
spec:
selector:
name: webapp
ports:
- protocol: TCP
port: 8082
targetPort: 80

0 comments on commit 5345f0c

Please sign in to comment.