imfreedom/k8s-cluster

b83582867b78
Parents 7e064bbac852
Children 42c7a1915a91
use commonLabels for 50-data.imfreedom.org
--- a/50-data.imfreedom.org/kustomization.yaml Thu Jun 17 03:04:40 2021 -0500
+++ b/50-data.imfreedom.org/kustomization.yaml Thu Jun 17 03:07:48 2021 -0500
@@ -1,5 +1,7 @@
---
namespace: imfreedom
+commonLabels:
+ app: data
resources:
- manifest.yaml
-
+---
--- a/50-data.imfreedom.org/manifest.yaml Thu Jun 17 03:04:40 2021 -0500
+++ b/50-data.imfreedom.org/manifest.yaml Thu Jun 17 03:07:48 2021 -0500
@@ -59,8 +59,6 @@
kind: Service
metadata:
name: data
- labels:
- app: data
spec:
ports:
- port: 9000
@@ -72,8 +70,6 @@
kind: NetworkPolicy
metadata:
name: data
- labels:
- app: data
spec:
podSelector:
matchLabels:
@@ -84,9 +80,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: 9000
protocol: TCP
@@ -95,8 +97,6 @@
kind: Deployment
metadata:
name: data
- labels:
- app: data
spec:
replicas: 1
selector:
@@ -105,9 +105,6 @@
strategy:
type: Recreate
template:
- metadata:
- labels:
- app: data
spec:
containers:
- name: minio
@@ -149,8 +146,6 @@
kind: PersistentVolumeClaim
metadata:
name: data
- labels:
- app: data
spec:
accessModes:
- ReadWriteOnce