imfreedom/k8s-cluster

Parents 3b967f035931
Children 3fef569b82d6
Tweak some resources and use the rewrite annotation so we don't need to tell goserve to handle funky paths
--- a/50-docs.pidgin.im.yaml Sun May 05 23:14:34 2019 -0500
+++ b/50-docs.pidgin.im.yaml Thu May 09 06:44:43 2019 -0500
@@ -7,6 +7,7 @@
name: docs
annotations:
certmanager.k8s.io/issuer: letsencrypt
+ nginx.ingress.kubernetes.io/rewrite-target: /
labels:
app: docs
spec:
@@ -92,16 +93,13 @@
imagePullPolicy: Always
ports:
- containerPort: 3000
- env:
- - name: GOSERVE_PREFIX
- value: /libgnt/latest
resources:
limits:
- cpu: 200m
- memory: 128Mi
- requests:
cpu: 100m
memory: 96Mi
+ requests:
+ cpu: 50m
+ memory: 32Mi
---
apiVersion: v1
kind: Service
@@ -145,16 +143,13 @@
imagePullPolicy: Always
ports:
- containerPort: 3000
- env:
- - name: GOSERVE_PREFIX
- value: /libgnt/next
resources:
limits:
- cpu: 200m
- memory: 128Mi
- requests:
cpu: 100m
memory: 96Mi
+ requests:
+ cpu: 50m
+ memory: 64Mi
---
apiVersion: v1
kind: Service
@@ -198,15 +193,12 @@
imagePullPolicy: Always
ports:
- containerPort: 3000
- env:
- - name: GOSERVE_PREFIX
- value: /talkatu/latest
resources:
limits:
- cpu: 200m
- memory: 128Mi
- requests:
cpu: 100m
memory: 96Mi
+ requests:
+ cpu: 50m
+ memory: 64Mi
---