imfreedom/k8s-cluster

Add the gplugin documentation

2019-08-19, Gary Kramlich
8bb80851bba6
Parents 23b5aca98e8b
Children 8b16b7f1b795
Add the gplugin documentation
--- a/50-docs.pidgin.im.yaml Wed Aug 14 00:08:24 2019 -0500
+++ b/50-docs.pidgin.im.yaml Mon Aug 19 21:22:56 2019 -0500
@@ -10,6 +10,8 @@
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "X-Frame-Options: SAMEORIGIN";
+ rewrite ^(/gplugin/latest)$ $1/ redirect;
+ rewrite ^(/gplugin-gtk/latest)$ $1/ redirect;
rewrite ^(/libgnt/latest)$ $1/ redirect;
rewrite ^(/libgnt/next)$ $1/ redirect;
rewrite ^(/pidgin/2.x.y)$ $1/ redirect;
@@ -22,6 +24,14 @@
http:
paths:
- backend:
+ serviceName: docs-gplugin-latest
+ servicePort: 3000
+ path: /gplugin/latest(/|$)(.*)
+ - backend:
+ serviceName: docs-gplugin-gtk-latest
+ servicePort: 3000
+ path: /gplugin-gtk/latest(/|$)(.*)
+ - backend:
serviceName: docs-libgnt-latest
servicePort: 3000
path: /libgnt/latest(/|$)(.*)
@@ -66,6 +76,138 @@
metadata:
namespace: pidgin
labels:
+ app: gplugin
+ version: latest
+ name: docs-gplugin-latest
+spec:
+ ports:
+ - port: 3000
+ protocol: TCP
+ selector:
+ app: gplugin
+ version: latest
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ namespace: pidgin
+ name: docs-gplugin-latest
+ labels:
+ app: gplugin
+ version: latest
+spec:
+ replicas: 2
+ selector:
+ matchLabels:
+ app: gplugin
+ version: latest
+ template:
+ metadata:
+ labels:
+ app: gplugin
+ version: latest
+ spec:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app
+ operator: In
+ values:
+ - gplugin
+ - key: version
+ operator: In
+ values:
+ - latest
+ topologyKey: failure-domain.beta.kubernetes.io/region
+ weight: 100
+ containers:
+ - name: docs-gplugin-latest
+ image: gplugin/gplugin-docs:latest
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 3000
+ resources:
+ limits:
+ cpu: 100m
+ memory: 96Mi
+ requests:
+ cpu: 50m
+ memory: 32Mi
+---
+apiVersion: v1
+kind: Service
+metadata:
+ namespace: pidgin
+ labels:
+ app: gplugin-gtk
+ version: latest
+ name: docs-gplugin-gtk-latest
+spec:
+ ports:
+ - port: 3000
+ protocol: TCP
+ selector:
+ app: gplugin-gtk
+ version: latest
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ namespace: pidgin
+ name: docs-gplugin-gtk-latest
+ labels:
+ app: gplugin-gtk
+ version: latest
+spec:
+ replicas: 2
+ selector:
+ matchLabels:
+ app: gplugin-gtk
+ version: latest
+ template:
+ metadata:
+ labels:
+ app: gplugin-gtk
+ version: latest
+ spec:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app
+ operator: In
+ values:
+ - gplugin-gtk
+ - key: version
+ operator: In
+ values:
+ - latest
+ topologyKey: failure-domain.beta.kubernetes.io/region
+ weight: 100
+ containers:
+ - name: docs-gplugin-gtk-latest
+ image: gplugin/gplugin-gtk-docs:latest
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 3000
+ resources:
+ limits:
+ cpu: 100m
+ memory: 96Mi
+ requests:
+ cpu: 50m
+ memory: 32Mi
+---
+apiVersion: v1
+kind: Service
+metadata:
+ namespace: pidgin
+ labels:
app: libgnt
version: latest
name: docs-libgnt-latest