Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
chore: add manifest for k8 deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jftanner committed Dec 28, 2019
1 parent a7d4784 commit a8d9eba
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Manifest for deploying to Kubernetes
apiVersion: v1
kind: Namespace
metadata:
name: maelstrom
---
apiVersion: v1
kind: Service
metadata:
name: maelstrom
namespace: maelstrom
spec:
ports:
- port: 80
targetPort: 3000
selector:
app: maelstrom
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: maelstrom
namespace: maelstrom
spec:
replicas: 3
selector:
matchLabels:
app: maelstrom
template:
metadata:
labels:
app: maelstrom
spec:
containers:
- name: maelstrom
image: jftanner/maelstrom
imagePullPolicy: Always
ports:
- containerPort: 3000

---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: maelstrom-ingress
namespace: maelstrom
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt
spec:
tls:
- hosts:
- maelstrom.tanndev.com
secretName: maelstrom-tls
rules:
- host: maelstrom.tanndev.com
http:
paths:
- backend:
serviceName: maelstrom
servicePort: 80

0 comments on commit a8d9eba

Please sign in to comment.