imfreedom/k8s-cluster

Add the manifest for nest

2019-04-15, Gary Kramlich
c099140be442
Parents da318b7cf043
Children 5c2ea492243f
Add the manifest for nest
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-nest.pidgin.im.yaml Mon Apr 15 21:46:58 2019 -0500
@@ -0,0 +1,81 @@
+apiVersion: extensions/v1beta1
+kind: Ingress
+metadata:
+ namespace: pidgin
+ name: nest
+ annotations:
+ certmanager.k8s.io/issuer: letsencrypt
+ labels:
+ app: nest
+spec:
+ rules:
+ - host: nest.pidgin.im
+ http:
+ paths:
+ - backend:
+ serviceName: nest
+ servicePort: 3000
+ path: /
+ tls:
+ - hosts:
+ - nest.pidgin.im
+ secretName: nest-tls
+---
+apiVersion: certmanager.k8s.io/v1alpha1
+kind: Certificate
+metadata:
+ namespace: pidgin
+ name: nest
+spec:
+ secretname: nest-tls
+ issuerRef:
+ name: letsencrypt
+ commonName: nest.pidgin.im
+ dnsNames:
+ - nest.pidgin.im
+ acme:
+ config:
+ - http01:
+ ingress: nest
+ domains:
+ - nest.pidgin.im
+---
+apiVersion: v1
+kind: Service
+metadata:
+ namespace: pidgin
+ labels:
+ app: nest
+ name: nest
+spec:
+ ports:
+ - port: 3000
+ protocol: TCP
+ selector:
+ app: nest
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ namespace: pidgin
+ name: nest
+ labels:
+ app: nest
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: nest
+ template:
+ metadata:
+ labels:
+ app: nest
+ spec:
+ containers:
+ - name: nest
+ image: pidgin/nest:latest
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 3000
+---
+