Skip to content

Commit

Permalink
feat(deploy): add manifests, fix docker image certs
Browse files Browse the repository at this point in the history
  • Loading branch information
elonzh committed Oct 30, 2020
1 parent 4792986 commit c2b5c1c
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM scratch
FROM alpine
ENTRYPOINT ["/bin/trumpet"]
COPY trumpet /bin/trumpet
COPY trumpet /bin/trumpet
44 changes: 44 additions & 0 deletions manifests/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: trumpet
labels:
app: trumpet
spec:
selector:
matchLabels:
app: trumpet
template:
metadata:
labels:
app: trumpet
spec:
containers:
- name: trumpet
image: elonzh/trumpet
ports:
- containerPort: 8080
protocol: TCP
resources:
requests:
cpu: 100m
memory: 10Mi
limits:
cpu: 500m
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
name: trumpet
labels:
app: trumpet
spec:
type: ClusterIP
selector:
app: trumpet
ports:
- name: trumpet
port: 8080
protocol: TCP
targetPort: 8080
16 changes: 16 additions & 0 deletions manifests/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: trumpet
labels:
app: trumpet
spec:
rules:
- host: trumpet.example.com
http:
paths:
- backend:
serviceName: trumpet
servicePort: 8080
path: /
pathType: Prefix

0 comments on commit c2b5c1c

Please sign in to comment.