imfreedom/k8s-cluster

move 50-gaim.pidgin.im to kustomize

2021-06-17, Gary Kramlich
9c80c357a4cf
Parents bdedc678022e
Children 3f27dea0cde7
move 50-gaim.pidgin.im to kustomize
--- a/50-gaim.pidgin.im.yaml Thu Jun 17 02:08:04 2021 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,144 +0,0 @@
----
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRoute
-metadata:
- name: gaim-http
- namespace: roost
-spec:
- entryPoints:
- - http
- routes:
- - match: Host(`gaim.pidgin.im`)
- kind: Rule
- services:
- - name: gaim
- port: 80
- middlewares:
- - name: https-redirect
----
-apiVersion: traefik.containo.us/v1alpha1
-kind: IngressRoute
-metadata:
- name: gaim
- namespace: roost
-spec:
- entryPoints:
- - https
- routes:
- - match: Host(`gaim.pidgin.im`)
- kind: Rule
- services:
- - name: gaim
- port: 80
- middlewares:
- - name: common-headers
- - name: hsts-headers
- tls:
- secretName: gaim-tls
----
-apiVersion: cert-manager.io/v1alpha2
-kind: Certificate
-metadata:
- namespace: roost
- name: gaim-tls
-spec:
- secretName: gaim-tls
- issuerRef:
- name: letsencrypt
- commonName: gaim.pidgin.im
- dnsNames:
- - gaim.pidgin.im
----
-apiVersion: v1
-kind: Service
-metadata:
- namespace: roost
- name: gaim
- labels:
- app: gaim
-spec:
- ports:
- - port: 80
- protocol: TCP
- selector:
- app: gaim
----
-apiVersion: networking.k8s.io/v1
-kind: NetworkPolicy
-metadata:
- namespace: roost
- name: gaim
- labels:
- app: gaim
-spec:
- podSelector:
- matchLabels:
- app: gaim
- 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: gaim
-spec:
- minAvailable: 1
- selector:
- matchLabels:
- app: gaim
----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- namespace: roost
- name: gaim
- labels:
- app: gaim
-spec:
- replicas: 2
- selector:
- matchLabels:
- app: gaim
- template:
- metadata:
- labels:
- app: gaim
- spec:
- affinity:
- podAntiAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - podAffinityTerm:
- labelSelector:
- matchExpressions:
- - key: app
- operator: In
- values:
- - gaim
- topologyKey: failure-domain.beta.kubernetes.io/region
- weight: 100
- containers:
- - name: gaim
- image: rwgrim/gaim-www:latest
- imagePullPolicy: Always
- ports:
- - containerPort: 80
- name: http
- resources:
- limits:
- cpu: 50m
- memory: 96Mi
- requests:
- cpu: 10m
- memory: 64Mi
----
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-gaim.pidgin.im/kustomization.yaml Thu Jun 17 02:09:59 2021 -0500
@@ -0,0 +1,5 @@
+---
+namespace: roost
+resources:
+ - manifest.yaml
+---
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/50-gaim.pidgin.im/manifest.yaml Thu Jun 17 02:09:59 2021 -0500
@@ -0,0 +1,137 @@
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: gaim-http
+spec:
+ entryPoints:
+ - http
+ routes:
+ - match: Host(`gaim.pidgin.im`)
+ kind: Rule
+ services:
+ - name: gaim
+ port: 80
+ middlewares:
+ - name: https-redirect
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+ name: gaim
+spec:
+ entryPoints:
+ - https
+ routes:
+ - match: Host(`gaim.pidgin.im`)
+ kind: Rule
+ services:
+ - name: gaim
+ port: 80
+ middlewares:
+ - name: common-headers
+ - name: hsts-headers
+ tls:
+ secretName: gaim-tls
+---
+apiVersion: cert-manager.io/v1alpha2
+kind: Certificate
+metadata:
+ name: gaim-tls
+spec:
+ secretName: gaim-tls
+ issuerRef:
+ name: letsencrypt
+ commonName: gaim.pidgin.im
+ dnsNames:
+ - gaim.pidgin.im
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: gaim
+ labels:
+ app: gaim
+spec:
+ ports:
+ - port: 80
+ protocol: TCP
+ selector:
+ app: gaim
+---
+apiVersion: networking.k8s.io/v1
+kind: NetworkPolicy
+metadata:
+ name: gaim
+ labels:
+ app: gaim
+spec:
+ podSelector:
+ matchLabels:
+ app: gaim
+ 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: gaim
+spec:
+ minAvailable: 1
+ selector:
+ matchLabels:
+ app: gaim
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: gaim
+ labels:
+ app: gaim
+spec:
+ replicas: 2
+ selector:
+ matchLabels:
+ app: gaim
+ template:
+ metadata:
+ labels:
+ app: gaim
+ spec:
+ affinity:
+ podAntiAffinity:
+ preferredDuringSchedulingIgnoredDuringExecution:
+ - podAffinityTerm:
+ labelSelector:
+ matchExpressions:
+ - key: app
+ operator: In
+ values:
+ - gaim
+ topologyKey: failure-domain.beta.kubernetes.io/region
+ weight: 100
+ containers:
+ - name: gaim
+ image: rwgrim/gaim-www:latest
+ imagePullPolicy: Always
+ ports:
+ - containerPort: 80
+ name: http
+ resources:
+ limits:
+ cpu: 50m
+ memory: 96Mi
+ requests:
+ cpu: 10m
+ memory: 64Mi
+---