imfreedom/k8s-cluster

42c7a1915a91
Parents b83582867b78
Children 890c6103bfac
Update 50-gaim.pidgin.im to use commonLabels
--- a/50-gaim.pidgin.im/kustomization.yaml Thu Jun 17 03:07:48 2021 -0500
+++ b/50-gaim.pidgin.im/kustomization.yaml Thu Jun 17 03:10:41 2021 -0500
@@ -1,5 +1,7 @@
---
namespace: roost
+commonLabels:
+ app: gaim
resources:
- manifest.yaml
---
--- a/50-gaim.pidgin.im/manifest.yaml Thu Jun 17 03:07:48 2021 -0500
+++ b/50-gaim.pidgin.im/manifest.yaml Thu Jun 17 03:10:41 2021 -0500
@@ -50,8 +50,6 @@
kind: Service
metadata:
name: gaim
- labels:
- app: gaim
spec:
ports:
- port: 80
@@ -63,8 +61,6 @@
kind: NetworkPolicy
metadata:
name: gaim
- labels:
- app: gaim
spec:
podSelector:
matchLabels:
@@ -75,9 +71,15 @@
matchLabels:
name: kube-public
podSelector:
- matchLabels:
- app: traefik
- role: controller
+ matchExpressions:
+ - key: app
+ operator: In
+ values:
+ - traefik
+ - key: role
+ operator: In
+ values:
+ - controller
ports:
- port: 80
protocol: TCP
@@ -96,17 +98,12 @@
kind: Deployment
metadata:
name: gaim
- labels:
- app: gaim
spec:
replicas: 2
selector:
matchLabels:
app: gaim
template:
- metadata:
- labels:
- app: gaim
spec:
affinity:
podAntiAffinity: