Initial commit: Consolidated DevOps scripts and K8s manifests
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: makeanyplace-web-staging
|
||||
namespace: default
|
||||
labels:
|
||||
app: makeanyplace-web-staging
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: makeanyplace-web-staging
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: makeanyplace-web-staging
|
||||
spec:
|
||||
containers:
|
||||
- image: remember.thefoldwithin.earth/mrhavens/makeanyplace-web:staging
|
||||
imagePullPolicy: Always
|
||||
name: web
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: makeanyplace-web-staging-svc
|
||||
namespace: default
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: makeanyplace-web-staging
|
||||
type: ClusterIP
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: makeanyplace-staging-ingress
|
||||
namespace: default
|
||||
spec:
|
||||
rules:
|
||||
- host: makeanyplace.staging
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: makeanyplace-web-staging-svc
|
||||
port:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Prefix
|
||||
Reference in New Issue
Block a user