Skip to content

Commit

Permalink
☸️ Add initial kubernetes yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Rested committed Dec 19, 2019
1 parent 894ed75 commit e60e2b0
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions k8s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hankey-deployment
labels:
app: hankey
spec:
replicas: 1
selector:
matchLabels:
app: hankey
template:
metadata:
labels:
app: hankey
spec:
containers:
- name: hankey
image: docker.pkg.github.com/rested/hankey/hankey:0.1.2
imagePullPolicy: Always
ports:
- containerPort: 5000
resources:
limits:
cpu: 100m
memory: 100m
---
apiVersion: v1
kind: Service
metadata:
name: hankey-service
spec:
selector:
app: hankey
ports:
- protocol: TCP
port: 80
targetPort: 5000
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: hankey-ingress
spec:
rules:
- host: hankey.rtcode.xyz
http:
paths:
- path: /
backend:
serviceName: hankey-service
servicePort: 80

0 comments on commit e60e2b0

Please sign in to comment.