imfreedom/k8s-cluster

Parents 363925c263dd
Children 998736369c9b
Shutdown wiki.imfreedom.org and redirect everything to kb.imfreedom.org
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-wiki.imfreedom.org/kustomization.yaml Mon Jul 04 23:07:39 2022 -0500
@@ -0,0 +1,8 @@
+---
+namespace: imfreedom
+commonLabels:
+ app: wiki
+resources:
+ - manifest.yaml
+ - middleware.yaml
+---
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-wiki.imfreedom.org/manifest.yaml Mon Jul 04 23:07:39 2022 -0500
@@ -0,0 +1,51 @@
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: wiki-http
+spec:
+ entryPoints:
+ - http
+ routes:
+ - match: Host(`wiki.imfreedom.org`)
+ kind: Rule
+ services:
+ - name: kb
+ port: 80
+ middlewares:
+ - name: wiki-imf-middlewares
+ - name: https-redirect
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: wiki-https
+spec:
+ entryPoints:
+ - https
+ routes:
+ - match: Host(`wiki.imfreedom.org`)
+ kind: Rule
+ services:
+ - name: kb
+ port: 80
+ middlewares:
+ - name: wiki-imf-middlewares
+ # - name: ci-body-size
+ - name: common-headers
+ - name: hsts-headers
+ tls:
+ secretName: wiki-tls
+---
+apiVersion: cert-manager.io/v1
+kind: Certificate
+metadata:
+ name: wiki-tls
+spec:
+ secretName: wiki-tls
+ issuerRef:
+ name: letsencrypt
+ commonName: wiki.imfreedom.org
+ dnsNames:
+ - wiki.imfreedom.org
+---
--- a/50-wiki.imfreedom.org/mediawiki/kustomization.yaml Mon May 02 21:56:53 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
----
-namespace: imfreedom
-commonLabels:
- app: wiki
- role: app
-resources:
- - manifest.yaml
-secretGenerator:
- - name: wiki-app
- files:
- - secrets/LocalSettings.php
- options:
- disableNameSuffixHash: true
----
--- a/50-wiki.imfreedom.org/mediawiki/manifest.yaml Mon May 02 21:56:53 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,155 +0,0 @@
----
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRoute
-metadata:
- name: wiki-http
-spec:
- entryPoints:
- - http
- routes:
- - match: Host(`wiki.imfreedom.org`)
- kind: Rule
- services:
- - name: wiki-app
- port: 80
- middlewares:
- - name: https-redirect
----
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRoute
-metadata:
- name: wiki-https
-spec:
- entryPoints:
- - https
- routes:
- - match: Host(`wiki.imfreedom.org`)
- kind: Rule
- services:
- - name: wiki-app
- port: 80
- middlewares:
- # - name: ci-body-size
- - name: common-headers
- - name: hsts-headers
- tls:
- secretName: wiki-tls
----
-apiVersion: cert-manager.io/v1
-kind: Certificate
-metadata:
- name: wiki-tls
-spec:
- secretName: wiki-tls
- issuerRef:
- name: letsencrypt
- commonName: wiki.imfreedom.org
- dnsNames:
- - wiki.imfreedom.org
----
-apiVersion: v1
-kind: Service
-metadata:
- name: wiki-app
-spec:
- ports:
- - port: 80
- protocol: TCP
- selector:
- app: wiki
- role: app
----
-apiVersion: networking.k8s.io/v1
-kind: NetworkPolicy
-metadata:
- name: wiki-app
-spec:
- podSelector:
- matchLabels:
- app: wiki
- role: app
- ingress:
- - from:
- - namespaceSelector:
- matchLabels:
- name: kube-public
- podSelector:
- matchExpressions:
- - key: app
- operator: In
- values:
- - traefik
- - key: role
- operator: In
- values:
- - controller
- ports:
- - port: 80
- protocol: TCP
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: wiki-app
-spec:
- replicas: 1
- revisionHistoryLimit: 1
- selector:
- matchLabels:
- app: wiki
- role: app
- strategy:
- type: Recreate
- template:
- spec:
- containers:
- - name: mediawiki
- image: docker.io/imfreedom/wiki:latest
- imagePullPolicy: Always
- resources:
- limits:
- cpu: 500m
- memory: 512Mi
- requests:
- cpu: 250m
- memory: 128Mi
- ports:
- - containerPort: 80
- volumeMounts:
- - mountPath: /var/www/html/images/
- name: uploads
- readOnly: false
- subPath: uploads
- - mountPath: /config
- name: config
- readOnly: true
- volumes:
- - name: uploads
- persistentVolumeClaim:
- claimName: wiki-uploads
- - name: config
- secret:
- secretName: wiki-app
----
-apiVersion: v1
-kind: PersistentVolumeClaim
-metadata:
- name: wiki-uploads
-spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 1Gi
----
-apiVersion: gemini.fairwinds.com/v1beta1
-kind: SnapshotGroup
-metadata:
- name: wiki-uploads
-spec:
- persistentVolumeClaim:
- claimName: wiki-uploads
- schedule:
- - every: 12 hours
- keep: 2
----
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-wiki.imfreedom.org/middleware.yaml Mon Jul 04 23:07:39 2022 -0500
@@ -0,0 +1,659 @@
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-middlewares
+spec:
+ chain:
+ middlewares:
+ - name: wiki-imf-aim
+ - name: wiki-imf-alitalk
+ - name: wiki-imf-avatars
+ - name: wiki-imf-baidu-hi
+ - name: wiki-imf-battle-net
+ - name: wiki-imf-bonjour
+ - name: wiki-imf-cspace
+ - name: wiki-imf-directnet
+ - name: wiki-imf-emoji
+ - name: wiki-imf-facebook
+ - name: wiki-imf-gadu-gadu
+ - name: wiki-imf-gale
+ - name: wiki-imf-goim
+ - name: wiki-imf-google-talk
+ - name: wiki-imf-gsc
+ - name: wiki-imf-icq
+ - name: wiki-imf-imessage
+ - name: wiki-imf-impp
+ - name: wiki-imf-irc
+ - name: wiki-imf-lcs
+ - name: wiki-imf-lync
+ - name: wiki-imf-mailing-lists
+ - name: wiki-imf-main-page
+ - name: wiki-imf-message-styles
+ - name: wiki-imf-mig33
+ - name: wiki-imf-mmp
+ - name: wiki-imf-msn
+ - name: wiki-imf-msn-av
+ - name: wiki-imf-msn-mpop
+ - name: wiki-imf-msn-notifications
+ - name: wiki-imf-msn-ns
+ - name: wiki-imf-msn-p2p-msnobj
+ - name: wiki-imf-msn-p2p-slp
+ - name: wiki-imf-msn-p2pv1
+ - name: wiki-imf-msn-protocol-basics
+ - name: wiki-imf-msn-reference
+ - name: wiki-imf-msn-soap
+ - name: wiki-imf-mxit
+ - name: wiki-imf-myspace
+ - name: wiki-imf-nateon
+ - name: wiki-imf-okcupid
+ - name: wiki-imf-psyc
+ - name: wiki-imf-qq
+ - name: wiki-imf-retroshare
+ - name: wiki-imf-rtp
+ - name: wiki-imf-sametime
+ - name: wiki-imf-silc
+ - name: wiki-imf-simple
+ - name: wiki-imf-skype
+ - name: wiki-imf-smiley-themes
+ - name: wiki-imf-steam-friends
+ - name: wiki-imf-tlen-pl
+ - name: wiki-imf-toc2
+ - name: wiki-imf-wangwang
+ - name: wiki-imf-xfire
+ - name: wiki-imf-xmpp
+ - name: wiki-imf-yahoo
+ - name: wiki-imf-zephyr
+ - name: wiki-imf-catch-all
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-aim
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/AIM
+ replacement: https://kb.imfreedom.org/protocols/aim/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-alitalk
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/AliTalk
+ replacement: https://kb.imfreedom.org/protocols/alitalk/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-avatars
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Avatars
+ replacement: https://kb.imfreedom.org/comparisons/avatars/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-baidu-hi
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Baidu_Hi
+ replacement: https://kb.imfreedom.org/protocols/baiduhi/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-battle-net
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Battle\.net
+ replacement: https://kb.imfreedom.org/protocols/battle.net/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-bonjour
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Bonjour
+ replacement: https://kb.imfreedom.org/protocols/bonjour/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-cspace
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Cspace
+ replacement: https://kb.imfreedom.org/protocols/cspace/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-directnet
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/DirectNet
+ replacement: https://kb.imfreedom.org/protocols/directnet/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-emoji
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Emoji
+ replacement: https://kb.imfreedom.org/comparisons/emoji/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-facebook
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Facebook
+ replacement: https://kb.imfreedom.org/protocols/facebook/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-gadu-gadu
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Gadu-Gadu
+ replacement: https://kb.imfreedom.org/protocols/gadugadu/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-gale
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Gale
+ replacement: https://kb.imfreedom.org/protocols/gale/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-goim
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/GOIM
+ replacement: https://kb.imfreedom.org/protocols/goim/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-google-talk
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/GoogleTalk
+ replacement: https://kb.imfreedom.org/protocols/googletalk/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-gsc
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/GSC
+ replacement: https://kb.imfreedom.org/protocols/gsc/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-icq
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/ICQ
+ replacement: https://kb.imfreedom.org/protocols/icq/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-imessage
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/IMessage
+ replacement: https://kb.imfreedom.org/protocols/imessage/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-impp
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/IMPP
+ replacement: https://kb.imfreedom.org/protocols/impp/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-irc
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/IRC
+ replacement: https://kb.imfreedom.org/protocols/irc/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-lcs
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/LCS
+ replacement: https://kb.imfreedom.org/protocols/lcs/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-lync
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Lync
+ replacement: https://kb.imfreedom.org/protocols/lync/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-mailing-lists
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Mailing_lists
+ replacement: https://kb.imfreedom.org/mailinglists/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-main-page
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Main_Page
+ replacement: https://kb.imfreedom.org/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-message-styles
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Message_styles
+ replacement: https://kb.imfreedom.org/specifications/messagestyles/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-mig33
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Mig33
+ replacement: https://kb.imfreedom.org/protocols/mig33/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-mmp
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MMP
+ replacement: https://kb.imfreedom.org/protocols/mmp/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN$
+ replacement: https://kb.imfreedom.org/protocols/MSN/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-av
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:AV.*
+ replacement: https://kb.imfreedom.org/protocols/MSN/audiovideo/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-mpop
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:Other/MPOP
+ replacement: https://kb.imfreedom.org/protocols/MSN/multiplepointsofpresence/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-notifications
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:Other/Notifications
+ replacement: https://kb.imfreedom.org/protocols/MSN/notifications/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-ns
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:NS/Challenges.*
+ replacement: https://kb.imfreedom.org/protocols/MSN/notificationserver/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-p2p-msnobj
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:P2P/Msnobj_Description
+ replacement: https://kb.imfreedom.org/protocols/MSN/p2p/#msnobj-based-transfers
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-p2p-slp
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:P2P/SLP
+ replacement: https://kb.imfreedom.org/protocols/MSN/p2p/#slp
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-p2pv1
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/P2Pv1_Headers
+ replacement: https://kb.imfreedom.org/protocols/MSN/p2p/#slp
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-protocol-basics
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:Protocol_Basics
+ replacement: https://kb.imfreedom.org/protocols/MSN/protocolbasics/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-reference
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:Reference
+ replacement: https://kb.imfreedom.org/protocols/MSN/reference/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-msn-soap
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MSN:SOAP/Contact_List_Management
+ replacement: https://kb.imfreedom.org/protocols/MSN/soap/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-mxit
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MXit
+ replacement: https://kb.imfreedom.org/protocols/mxit/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-myspace
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/MySpaceIM
+ replacement: https://kb.imfreedom.org/protocols/myspaceim/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-nateon
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/NateOn
+ replacement: https://kb.imfreedom.org/protocols/nateon/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-okcupid
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/OkCupid
+ replacement: https://kb.imfreedom.org/protocols/okcupid/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-psyc
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/PSYC
+ replacement: https://kb.imfreedom.org/protocols/psyc/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-qq
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/QQ
+ replacement: https://kb.imfreedom.org/protocols/qq/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-retroshare
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Retroshare
+ replacement: https://kb.imfreedom.org/protocols/retroshare/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-rtp
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/RTP
+ replacement: https://kb.imfreedom.org/protocols/rtp/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-sametime
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Sametime
+ replacement: https://kb.imfreedom.org/protocols/sametime/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-silc
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/SILC
+ replacement: https://kb.imfreedom.org/protocols/silc/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-simple
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/SIMPLE
+ replacement: https://kb.imfreedom.org/protocols/simple/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-skype
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Skype
+ replacement: https://kb.imfreedom.org/protocols/skype/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-smiley-themes
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Smiley_themes
+ replacement: https://kb.imfreedom.org/specifications/smileythemes/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-steam-friends
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Steam_Friends
+ replacement: https://kb.imfreedom.org/protocols/steamfriends/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-tlen-pl
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Tlen\.pl
+ replacement: https://kb.imfreedom.org/protocols/tlen.pl/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-toc2
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/TOC2_protocol
+ replacement: https://kb.imfreedom.org/protocols/toc2/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-wangwang
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/WangWang
+ replacement: https://kb.imfreedom.org/protocols/wangwang/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-xfire
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Xfire
+ replacement: https://kb.imfreedom.org/protocols/xfire/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-xmpp
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/XMPP
+ replacement: https://kb.imfreedom.org/protocols/xmpp/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-yahoo
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Yahoo
+ replacement: https://kb.imfreedom.org/protocols/yahoo/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-zephyr
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/index\.php\/Zephyr
+ replacement: https://kb.imfreedom.org/protocols/zephyr/
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: Middleware
+metadata:
+ name: wiki-imf-catch-all
+spec:
+ redirectRegex:
+ permanent: true
+ regex: ^https?:\/\/wiki\.imfreedom\.org\/.*
+ replacement: https://kb.imfreedom.org/
+---
+
--- a/50-wiki.imfreedom.org/mysql/kustomization.yaml Mon May 02 21:56:53 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
----
-namespace: imfreedom
-commonLabels:
- app: wiki
- role: database
-resources:
- - manifest.yaml
-secretGenerator:
- - name: wiki-database
- envs:
- - secrets/env
- options:
- disableNameSuffixHash: true
----
--- a/50-wiki.imfreedom.org/mysql/manifest.yaml Mon May 02 21:56:53 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,119 +0,0 @@
----
-apiVersion: v1
-kind: Service
-metadata:
- name: wiki-database
-spec:
- ports:
- - port: 3306
- protocol: TCP
- selector:
- app: wiki
- role: database
----
-apiVersion: networking.k8s.io/v1
-kind: NetworkPolicy
-metadata:
- name: wiki-database
-spec:
- podSelector:
- matchLabels:
- app: wiki
- role: database
- ingress:
- - from:
- - podSelector:
- matchExpressions:
- - key: app
- operator: In
- values:
- - wiki
- - key: role
- operator: In
- values:
- - app
- ports:
- - port: 3306
- protocol: TCP
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: wiki-database
-spec:
- replicas: 1
- revisionHistoryLimit: 1
- selector:
- matchLabels:
- app: wiki
- role: database
- strategy:
- type: Recreate
- template:
- spec:
- containers:
- - name: mysql
- image: docker.io/mysql:5
- imagePullPolicy: Always
- resources:
- limits:
- cpu: 200m
- memory: 384Mi
- requests:
- cpu: 100m
- memory: 192Mi
- ports:
- - containerPort: 3306
- volumeMounts:
- - mountPath: /var/lib/mysql/
- name: data
- readOnly: false
- subPath: mysql
- env:
- - name: MYSQL_ROOT_PASSWORD
- valueFrom:
- secretKeyRef:
- name: wiki-database
- key: root_password
- - name: MYSQL_USER
- valueFrom:
- secretKeyRef:
- name: wiki-database
- key: user
- - name: MYSQL_PASSWORD
- valueFrom:
- secretKeyRef:
- name: wiki-database
- key: password
- - name: MYSQL_DATABASE
- valueFrom:
- secretKeyRef:
- name: wiki-database
- key: database
- volumes:
- - name: data
- persistentVolumeClaim:
- claimName: wiki-database
----
-apiVersion: v1
-kind: PersistentVolumeClaim
-metadata:
- name: wiki-database
-spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 1Gi
----
-apiVersion: gemini.fairwinds.com/v1beta1
-kind: SnapshotGroup
-metadata:
- name: wiki-database
-spec:
- persistentVolumeClaim:
- claimName: wiki-database
- schedule:
- - every: 12 hours
- keep: 2
----