imfreedom/k8s-cluster

move 50-old.pidgin.im to kustomize

2021-06-17, Gary Kramlich
6ce89a21e531
Parents 3f27dea0cde7
Children 18af19b0db4d
move 50-old.pidgin.im to kustomize
--- a/50-old.pidgin.im.yaml Thu Jun 17 02:12:10 2021 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,147 +0,0 @@
----
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRoute
-metadata:
- name: old-http
- namespace: roost
-spec:
- entryPoints:
- - http
- routes:
- - match: Host(`old.pidgin.im`)
- kind: Rule
- services:
- - name: oldsite
- port: 80
- middlewares:
- - name: https-redirect
----
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRoute
-metadata:
- name: old-https
- namespace: roost
-spec:
- entryPoints:
- - https
- routes:
- - match: Host(`old.pidgin.im`)
- kind: Rule
- services:
- - name: oldsite
- port: 80
- middlewares:
- - name: common-headers
- - name: hsts-headers
- tls:
- secretName: old-tls
----
-apiVersion: cert-manager.io/v1alpha2
-kind: Certificate
-metadata:
- namespace: roost
- name: old-tls
-spec:
- secretName: old-tls
- issuerRef:
- name: letsencrypt
- commonName: old.pidgin.im
- dnsNames:
- - old.pidgin.im
----
-apiVersion: v1
-kind: Service
-metadata:
- namespace: roost
- name: oldsite
- labels:
- app: oldsite
-spec:
- ports:
- - port: 80
- protocol: TCP
- selector:
- app: oldsite
----
-apiVersion: networking.k8s.io/v1
-kind: NetworkPolicy
-metadata:
- namespace: roost
- name: oldsite
- labels:
- app: oldsite
-spec:
- podSelector:
- matchLabels:
- app: oldsite
- ingress:
- - from:
- - namespaceSelector:
- matchLabels:
- name: kube-public
- podSelector:
- matchLabels:
- app: traefik
- role: controller
- ports:
- - port: 80
- protocol: TCP
----
-apiVersion: policy/v1beta1
-kind: PodDisruptionBudget
-metadata:
- namespace: roost
- name: oldsite
-spec:
- minAvailable: 1
- selector:
- matchLabels:
- app: oldsite
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- namespace: roost
- name: oldsite
- labels:
- app: oldsite
- keel.sh/policy: force
- keel.sh/trigger: poll
- annotations:
- keel.sh/pollSchedule: "@every 60m"
-spec:
- replicas: 2
- selector:
- matchLabels:
- app: oldsite
- template:
- metadata:
- labels:
- app: oldsite
- spec:
- affinity:
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - podAffinityTerm:
- labelSelector:
- matchExpressions:
- - key: app
- operator: In
- values:
- - oldsite
- topologyKey: failure-domain.beta.kubernetes.io/region
- weight: 100
- containers:
- - name: oldsite
- image: pidgin/old.pidgin.im:latest
- imagePullPolicy: Always
- ports:
- - containerPort: 80
- resources:
- limits:
- cpu: 100m
- memory: 96Mi
- requests:
- cpu: 50m
- memory: 64Mi
----
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-old.pidgin.im/kustomization.yaml Thu Jun 17 02:13:30 2021 -0500
@@ -0,0 +1,5 @@
+---
+namespace: roost
+resources:
+ - manifest.yaml
+---
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-old.pidgin.im/manifest.yaml Thu Jun 17 02:13:30 2021 -0500
@@ -0,0 +1,140 @@
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: old-http
+spec:
+ entryPoints:
+ - http
+ routes:
+ - match: Host(`old.pidgin.im`)
+ kind: Rule
+ services:
+ - name: oldsite
+ port: 80
+ middlewares:
+ - name: https-redirect
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: old-https
+spec:
+ entryPoints:
+ - https
+ routes:
+ - match: Host(`old.pidgin.im`)
+ kind: Rule
+ services:
+ - name: oldsite
+ port: 80
+ middlewares:
+ - name: common-headers
+ - name: hsts-headers
+ tls:
+ secretName: old-tls
+---
+apiVersion: cert-manager.io/v1alpha2
+kind: Certificate
+metadata:
+ name: old-tls
+spec:
+ secretName: old-tls
+ issuerRef:
+ name: letsencrypt
+ commonName: old.pidgin.im
+ dnsNames:
+ - old.pidgin.im
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: oldsite
+ labels:
+ app: oldsite
+spec:
+ ports:
+ - port: 80
+ protocol: TCP
+ selector:
+ app: oldsite
+---
+apiVersion: networking.k8s.io/v1
+kind: NetworkPolicy
+metadata:
+ name: oldsite
+ labels:
+ app: oldsite
+spec:
+ podSelector:
+ matchLabels:
+ app: oldsite
+ ingress:
+ - from:
+ - namespaceSelector:
+ matchLabels:
+ name: kube-public
+ podSelector:
+ matchLabels:
+ app: traefik
+ role: controller
+ ports:
+ - port: 80
+ protocol: TCP
+---
+apiVersion: policy/v1beta1
+kind: PodDisruptionBudget
+metadata:
+ name: oldsite
+spec:
+ minAvailable: 1
+ selector:
+ matchLabels:
+ app: oldsite
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: oldsite
+ labels:
+ app: oldsite
+ keel.sh/policy: force
+ keel.sh/trigger: poll
+ annotations:
+ keel.sh/pollSchedule: "@every 60m"
+spec:
+ replicas: 2
+ selector:
+ matchLabels:
+ app: oldsite
+ template:
+ metadata:
+ labels:
+ app: oldsite
+ spec:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app
+ operator: In
+ values:
+ - oldsite
+ topologyKey: failure-domain.beta.kubernetes.io/region
+ weight: 100
+ containers:
+ - name: oldsite
+ image: pidgin/old.pidgin.im:latest
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 80
+ resources:
+ limits:
+ cpu: 100m
+ memory: 96Mi
+ requests:
+ cpu: 50m
+ memory: 64Mi
+---