1
0
Fork 0

update labels

This commit is contained in:
Massaki Archambault 2023-02-04 22:11:39 -05:00
parent d55f74e74f
commit 1d17da280b
29 changed files with 183 additions and 128 deletions

View File

@ -43,8 +43,8 @@ diff: $(environment)
.PHONY: apply .PHONY: apply
apply: $(environment) apply: $(environment)
$(KUBECTL) $(KUBECTLFLAGS) apply $(KUBECTLAPPLYFLAGS) -l managed-by=kustomize-cluster -f $(ENVOUTDIR) $(KUBECTL) $(KUBECTLFLAGS) apply $(KUBECTLAPPLYFLAGS) -l app.kubernetes.io/managed-by=kustomize-cluster -f $(ENVOUTDIR)
$(KUBECTL) $(KUBECTLFLAGS) apply $(KUBECTLAPPLYFLAGS) -l managed-by=kustomize -f $(ENVOUTDIR) $(KUBECTL) $(KUBECTLFLAGS) apply $(KUBECTLAPPLYFLAGS) -l app.kubernetes.io/managed-by=kustomize -f $(ENVOUTDIR)
.PHONY: all dev prod .PHONY: all dev prod
all: dev prod all: dev prod

View File

@ -1,2 +1,6 @@
resources: resources:
- blackbox-exporter-deployment.yaml - blackbox-exporter-deployment.yaml
commonLabels:
app.kubernetes.io/name: blackbox-exporter
app.kubernetes.io/part-of: monitoring

View File

@ -1,2 +1,6 @@
resources: resources:
- drone-runner-deployment.yaml - drone-runner-deployment.yaml
commonLabels:
app.kubernetes.io/name: drone
app.kubernetes.io/component: runner

View File

@ -2,6 +2,10 @@ resources:
- drone-server-deployment.yaml - drone-server-deployment.yaml
- drone-server-ingress.yaml - drone-server-ingress.yaml
commonLabels:
app.kubernetes.io/name: drone
app.kubernetes.io/component: server
secretGenerator: secretGenerator:
- name: drone-secret - name: drone-secret
type: Opaque type: Opaque

View File

@ -1,6 +1,10 @@
resources: resources:
- ecommerce-exporter-deployment.yaml - ecommerce-exporter-deployment.yaml
commonLabels:
app.kubernetes.io/name: ecommerce-exporter
app.kubernetes.io/part-of: monitoring
configMapGenerator: configMapGenerator:
- name: ecommerce-exporter-config - name: ecommerce-exporter-config
literals: literals:

View File

@ -2,6 +2,10 @@ resources:
- gitea-deployment.yaml - gitea-deployment.yaml
- gitea-ingress.yaml - gitea-ingress.yaml
commonLabels:
app.kubernetes.io/name: gitea
app.kubernetes.io/component: server
# secretGenerator: # secretGenerator:
# - name: postgres-credentials # - name: postgres-credentials
# type: Opaque # type: Opaque

View File

@ -1,6 +1,10 @@
resources: resources:
- https://raw.githubusercontent.com/grafana/agent/v0.24.2/production/kubernetes/agent-bare.yaml - https://raw.githubusercontent.com/grafana/agent/v0.24.2/production/kubernetes/agent-bare.yaml
commonLabels:
app.kubernetes.io/name: grafana-agent
app.kubernetes.io/part-of: monitoring
secretGenerator: secretGenerator:
- name: grafana-agent - name: grafana-agent
behavior: create behavior: create

View File

@ -2,6 +2,10 @@ resources:
- grafana-deployment.yaml - grafana-deployment.yaml
- grafana-ingress.yaml - grafana-ingress.yaml
commonLabels:
app.kubernetes.io/name: grafana
app.kubernetes.io/part-of: monitoring
configMapGenerator: configMapGenerator:
- name: grafana-datasources - name: grafana-datasources
files: files:

View File

@ -6,4 +6,5 @@ resources:
- https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.1.1/examples/standard/service.yaml - https://raw.githubusercontent.com/kubernetes/kube-state-metrics/v2.1.1/examples/standard/service.yaml
commonLabels: commonLabels:
app.kubernetes.io/name: kube-state-metrics app.kubernetes.io/name: kube-state-metrics
app.kubernetes.io/part-of: monitoring

View File

@ -3,4 +3,7 @@ resources:
- dashboard-admin-user.yaml - dashboard-admin-user.yaml
- dashboard-ingress.yaml - dashboard-ingress.yaml
commonLabels:
app.kubernetes.io/name: kubernetes-dashboard
namespace: kubernetes-dashboard namespace: kubernetes-dashboard

View File

@ -3,6 +3,9 @@ resources:
- longhorn-helmchart.yaml - longhorn-helmchart.yaml
- longhorn-recurringjob.yaml - longhorn-recurringjob.yaml
commonLabels:
app.kubernetes.io/name: longhorn
secretGenerator: secretGenerator:
- name: s3-backupstore-credentials - name: s3-backupstore-credentials
type: Opaque type: Opaque

View File

@ -73,11 +73,11 @@ spec:
containerPort: 80 containerPort: 80
resources: resources:
requests: requests:
cpu: 1000m cpu: 2000m
memory: 1Gi memory: 2Gi
limits: limits:
cpu: 1000m cpu: 3000m
memory: 1Gi memory: 3Gi
volumeMounts: volumeMounts:
- name: nextcloud-pv - name: nextcloud-pv
mountPath: /var/www/html mountPath: /var/www/html

View File

@ -1,2 +1,6 @@
resources: resources:
- node-exporter-daemonset.yaml - node-exporter-daemonset.yaml
commonLabels:
app.kubernetes.io/name: node-exporter
app.kubernetes.io/part-of: monitoring

View File

@ -1,6 +1,9 @@
resources: resources:
- postgres-statefulset.yaml - postgres-statefulset.yaml
commonLabels:
app.kubernetes.io/component: postgres
secretGenerator: secretGenerator:
- name: postgres-credentials - name: postgres-credentials
type: Opaque type: Opaque

View File

@ -64,10 +64,10 @@ kind: Service
metadata: metadata:
name: postgres name: postgres
labels: labels:
app.kubernetes.io/name: postgres app.kubernetes.io/component: postgres
spec: spec:
selector: selector:
app.kubernetes.io/name: postgres app.kubernetes.io/component: postgres
ports: ports:
- name: postgres - name: postgres
port: 5432 port: 5432

View File

@ -1,2 +1,5 @@
resources: resources:
- https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/release-0.50/bundle.yaml - https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/release-0.50/bundle.yaml
commonLabels:
app.kubernetes.io/part-of: monitoring

View File

@ -4,6 +4,10 @@ resources:
- prometheus-ingress.yaml - prometheus-ingress.yaml
- traefik-podmonitor.yaml - traefik-podmonitor.yaml
commonLabels:
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: monitoring
secretGenerator: secretGenerator:
- name: grafana-cloud-credentials - name: grafana-cloud-credentials
type: Opaque type: Opaque

View File

@ -1,6 +1,9 @@
resources: resources:
- redis-deployment.yaml - redis-deployment.yaml
commonLabels:
app.kubernetes.io/component: redis
secretGenerator: secretGenerator:
- name: redis-credentials - name: redis-credentials
type: Opaque type: Opaque

View File

@ -40,10 +40,10 @@ kind: Service
metadata: metadata:
name: redis name: redis
labels: labels:
app.kubernetes.io/name: redis app.kubernetes.io/component: redis
spec: spec:
selector: selector:
app.kubernetes.io/name: redis app.kubernetes.io/component: redis
ports: ports:
- name: redis - name: redis
port: 6379 port: 6379

View File

@ -1,4 +1,7 @@
# http://localhost:8001/api/v1/namespaces/kube-system/services/traefik:traefik # http://localhost:8001/api/v1/namespaces/kube-system/services/traefik:traefik
resources: resources:
- traefik-helmchartconfig.yaml - traefik-helmchartconfig.yaml
commonLabels:
app.kubernetes.io/name: traefik

View File

@ -1,7 +0,0 @@
bases:
- ../../bases/grafana
resources:
- namespace.yaml
namespace: grafana

View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: grafana

View File

@ -1,4 +1,5 @@
bases: bases:
- ../../bases/traefik - ../../bases/traefik
- ../../bases/prometheus-operator
namespace: kube-system namespace: kube-system

View File

@ -5,6 +5,7 @@ bases:
- ../../bases/ecommerce-exporter - ../../bases/ecommerce-exporter
- ../../bases/kube-state-metrics - ../../bases/kube-state-metrics
- ../../bases/grafana-agent - ../../bases/grafana-agent
- ../../bases/grafana
- servicemonitors/any-namespaces-http.yaml - servicemonitors/any-namespaces-http.yaml
- servicemonitors/kubelet.yaml - servicemonitors/kubelet.yaml
- servicemonitors/longhorn.yaml - servicemonitors/longhorn.yaml

View File

@ -1,7 +0,0 @@
bases:
- ../../bases/prometheus-operator
resources:
- namespace.yaml
namespace: operators

View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: operators

View File

@ -1,11 +1,10 @@
bases: bases:
- ../../namespaces/kube-system - ../../namespaces/kube-system
- ../../namespaces/operators
- ../../bases/longhorn - ../../bases/longhorn
# allow "kubectl apply -l managed-by=cluster --prune ..." # allow "kubectl apply -l app.kubernetes.io/managed-by=cluster --prune ..."
commonLabels: commonLabels:
managed-by: kustomize-cluster app.kubernetes.io/managed-by: kustomize-cluster
transformers: transformers:
- transformers/placeholders.yaml - transformers/placeholders.yaml

View File

@ -1,85 +1,107 @@
products: products:
- name: i5-12600k # - name: i5-12600k
targets: # targets:
- parser: html # - parser: html
url: https://www.amazon.ca/Intel-i5-12600K-Desktop-Processor-Unlocked/dp/B09FX4D72T/ # url: https://www.amazon.ca/Intel-i5-12600K-Desktop-Processor-Unlocked/dp/B09FX4D72T/
selector: '.priceToPay .a-offscreen::text' # selector: '.priceToPay .a-offscreen::text'
- parser: json # - parser: json
url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=19-118-347&RecommendItem=&BestSellerItemList=9SIAA4YJ3X7676%2C9SIADGEGRN9541%2C9SIA7BBGRN9510&IsVATPrice=true # url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=19-118-347&RecommendItem=&BestSellerItemList=9SIAA4YJ3X7676%2C9SIADGEGRN9541%2C9SIA7BBGRN9510&IsVATPrice=true
selector: '.MainItem.FinalPrice' # selector: '.MainItem.FinalPrice'
- parser: json # - parser: json
url: https://www.bestbuy.ca/api/offers/v1/products/15778668/offers?postalCode=J4L # url: https://www.bestbuy.ca/api/offers/v1/products/15778668/offers?postalCode=J4L
selector: '.[] | .salePrice,.regularPrice' # selector: '.[] | .salePrice,.regularPrice'
- parser: html # - parser: html
url: https://www.canadacomputers.com/product_info.php?cPath=4_65_3860&item_id=201282 # url: https://www.canadacomputers.com/product_info.php?cPath=4_65_3860&item_id=201282
selector: '.price-show-panel .h2-big strong::text' # selector: '.price-show-panel .h2-big strong::text'
- parser: html # - parser: html
url: https://www.memoryexpress.com/Products/MX00119045 # url: https://www.memoryexpress.com/Products/MX00119045
selector: '.GrandTotal' # selector: '.GrandTotal'
- name: i7-12700k # - name: i7-12700k
targets: # targets:
- parser: html # - parser: html
url: https://www.amazon.ca/Intel-i7-12700K-Desktop-Processor-Unlocked/dp/B09FXNVDBJ/ # url: https://www.amazon.ca/Intel-i7-12700K-Desktop-Processor-Unlocked/dp/B09FXNVDBJ/
selector: '.priceToPay .a-offscreen::text' # selector: '.priceToPay .a-offscreen::text'
- parser: json # - parser: json
url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=19-118-343&RecommendItem=&BestSellerItemList=9SIAA4YGC82324%2C9SIADGEGMY7603%2C9SIAVH1J0A6685&IsVATPrice=true # url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=19-118-343&RecommendItem=&BestSellerItemList=9SIAA4YGC82324%2C9SIADGEGMY7603%2C9SIAVH1J0A6685&IsVATPrice=true
selector: '.MainItem.FinalPrice' # selector: '.MainItem.FinalPrice'
- parser: json # - parser: json
url: https://www.bestbuy.ca/api/offers/v1/products/15778672/offers?postalCode=J4L # url: https://www.bestbuy.ca/api/offers/v1/products/15778672/offers?postalCode=J4L
selector: '.[] | .salePrice,.regularPrice' # selector: '.[] | .salePrice,.regularPrice'
- parser: html # - parser: html
url: https://www.canadacomputers.com/product_info.php?cPath=4_65_3860&item_id=201280 # url: https://www.canadacomputers.com/product_info.php?cPath=4_65_3860&item_id=201280
selector: '.price-show-panel .h2-big strong::text' # selector: '.price-show-panel .h2-big strong::text'
- parser: html # - parser: html
url: https://www.memoryexpress.com/Products/MX00119043 # url: https://www.memoryexpress.com/Products/MX00119043
selector: '.GrandTotal' # selector: '.GrandTotal'
- name: NH-U12S redux # # - name: NH-U12S redux
targets: # # targets:
- parser: html # # - parser: html
url: https://www.amazon.ca/Noctua-NH-U12S-Performance-Cooler-redux-1700/dp/B08WPDD6GD/ # # url: https://www.amazon.ca/Noctua-NH-U12S-Performance-Cooler-redux-1700/dp/B08WPDD6GD/
selector: '.priceToPay .a-offscreen::text' # # selector: '.priceToPay .a-offscreen::text'
- parser: json # # - parser: json
url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=9SIAB98DXP3361&RecommendItem=&BestSellerItemList=9SIB9H0H0H0660&IsVATPrice=true # # url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=9SIAB98DXP3361&RecommendItem=&BestSellerItemList=9SIB9H0H0H0660&IsVATPrice=true
selector: '.MainItem.FinalPrice' # # selector: '.MainItem.FinalPrice'
- parser: json # # - parser: json
url: https://www.bestbuy.ca/api/offers/v1/products/16580299/offers?postalCode=J4L # # url: https://www.bestbuy.ca/api/offers/v1/products/16580299/offers?postalCode=J4L
selector: '.[] | .salePrice,.regularPrice' # # selector: '.[] | .salePrice,.regularPrice'
- name: ASUS Prime B660M-A D4 # - name: ASUS Prime B660M-A D4
targets: # targets:
- parser: html # - parser: html
url: https://www.amazon.ca/Prime-B660M-D4-Motherboard-Type-C/dp/B09NWF1JQC # url: https://www.amazon.ca/Prime-B660M-D4-Motherboard-Type-C/dp/B09NWF1JQC
selector: '.priceToPay .a-offscreen::text' # selector: '.priceToPay .a-offscreen::text'
- parser: json # - parser: json
url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=13-119-541&RecommendItem=&BestSellerItemList=9SIADGEGZU2598&IsVATPrice=true # url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=13-119-541&RecommendItem=&BestSellerItemList=9SIADGEGZU2598&IsVATPrice=true
selector: '.MainItem.FinalPrice' # selector: '.MainItem.FinalPrice'
- parser: json # - parser: json
url: https://www.bestbuy.ca/api/offers/v1/products/15954559/offers?postalCode=J4L # url: https://www.bestbuy.ca/api/offers/v1/products/15954559/offers?postalCode=J4L
selector: '.[] | .salePrice,.regularPrice' # selector: '.[] | .salePrice,.regularPrice'
- parser: html # - parser: html
url: https://www.canadacomputers.com/product_info.php?cPath=26_1842_3869&item_id=213279 # url: https://www.canadacomputers.com/product_info.php?cPath=26_1842_3869&item_id=213279
selector: '.price-show-panel .h2-big strong::text' # selector: '.price-show-panel .h2-big strong::text'
- parser: html # - parser: html
url: https://www.memoryexpress.com/Products/MX00119756 # url: https://www.memoryexpress.com/Products/MX00119756
selector: '.GrandTotal' # selector: '.GrandTotal'
- name: MSI PRO B660M-A # - name: MSI PRO B660M-A
targets: # targets:
- parser: html # - parser: html
url: https://www.amazon.ca/MSI-PRO-B660M-DDR4-Motherboard/dp/B09NTMRRTL/ # url: https://www.amazon.ca/MSI-PRO-B660M-DDR4-Motherboard/dp/B09NTMRRTL/
selector: '.priceToPay .a-offscreen::text' # selector: '.priceToPay .a-offscreen::text'
- parser: json # - parser: json
url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=13-144-531&RecommendItem=&BestSellerItemList=9SIA9H5HS67633%2C9SIA7BBHWY8396%2C9SIADDZJ183773&IsVATPrice=true # url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=13-144-531&RecommendItem=&BestSellerItemList=9SIA9H5HS67633%2C9SIA7BBHWY8396%2C9SIADDZJ183773&IsVATPrice=true
selector: '.MainItem.FinalPrice' # selector: '.MainItem.FinalPrice'
- parser: json # - parser: json
url: https://www.bestbuy.ca/api/offers/v1/products/16486621/offers?postalCode=J4L # url: https://www.bestbuy.ca/api/offers/v1/products/16486621/offers?postalCode=J4L
selector: '.[] | .salePrice,.regularPrice' # selector: '.[] | .salePrice,.regularPrice'
- parser: html # - parser: html
url: https://www.canadacomputers.com/product_info.php?cPath=26_1842_3869&item_id=213893 # url: https://www.canadacomputers.com/product_info.php?cPath=26_1842_3869&item_id=213893
selector: '.price-show-panel .h2-big strong::text' # selector: '.price-show-panel .h2-big strong::text'
- parser: html # - parser: html
url: https://www.memoryexpress.com/Products/MX00120369 # url: https://www.memoryexpress.com/Products/MX00120369
selector: '.GrandTotal' # selector: '.GrandTotal'
- name: 8Bitdo Ultimate Bluetooth Controller # - name: ASUS Prime Z690M-Plus D4
targets: # targets:
- parser: html # - parser: html
url: https://www.amazon.ca/8Bitdo-Ultimate-Bluetooth-Controller-Charging/dp/B0B9BGJVLL/ # url: https://www.amazon.ca/Z690M-Plus-D4-Motherboard-Connector-Thunderbolt/dp/B09JRW446Z/
selector: '.priceToPay .a-offscreen::text' # selector: '.priceToPay .a-offscreen::text'
# - parser: json
# url: https://www.newegg.ca/product/api/ProductRealtime?ItemNumber=13-119-515
# selector: '.MainItem.FinalPrice'
# - parser: json
# url: https://www.bestbuy.ca/api/offers/v1/products/15892764/offers?postalCode=J4L
# selector: '.[] | .salePrice,.regularPrice'
# - parser: html
# url: https://www.canadacomputers.com/product_info.php?cPath=26_1842_3869&item_id=209060
# selector: '.price-show-panel .h2-big strong::text'
# - parser: html
# url: https://www.memoryexpress.com/Products/MX00119111
# selector: '.GrandTotal'
# - name: 8Bitdo Ultimate Bluetooth Controller
# targets:
# - parser: html
# url: https://www.amazon.ca/8Bitdo-Ultimate-Bluetooth-Controller-Charging/dp/B0B9BGJVLL/
# selector: '.priceToPay .a-offscreen::text'
# - name: Sony S100F 2.0 CH
# targets:
# - parser: html
# url: https://www.amazon.ca/Sony-HTS100F-Surround-Soundbar-Bluetooth/dp/B0797MY6JB?th=1
# selector: '.priceToPay .a-offscreen::text'

View File

@ -1,7 +1,6 @@
resources: resources:
# - ../../namespaces/kubernetes-dashboard # - ../../namespaces/kubernetes-dashboard
- ../../namespaces/gitea - ../../namespaces/gitea
- ../../namespaces/grafana
- ../../namespaces/monitoring - ../../namespaces/monitoring
- ../../namespaces/nextcloud - ../../namespaces/nextcloud
@ -24,7 +23,7 @@ images:
newTag: 1.0.0-rc.3 newTag: 1.0.0-rc.3
- name: nextcloud - name: nextcloud
newName: badjware/nextcloud-tweak newName: badjware/nextcloud-tweak
newTag: 24.0.6 newTag: 25.0.3
- name: postgres - name: postgres
newTag: 9.6.23 newTag: 9.6.23
- name: redis - name: redis
@ -74,7 +73,7 @@ secretGenerator:
- agent.yaml=configurations/grafana-agent/agent.yaml - agent.yaml=configurations/grafana-agent/agent.yaml
- name: grafana-config - name: grafana-config
type: Opaque type: Opaque
namespace: grafana namespace: monitoring
behavior: replace behavior: replace
files: files:
- custom.ini=configurations/grafana/custom.ini - custom.ini=configurations/grafana/custom.ini
@ -92,9 +91,9 @@ secretGenerator:
files: files:
- prometheus-additional.yaml=configurations/prometheus/prometheus-additional.yaml - prometheus-additional.yaml=configurations/prometheus/prometheus-additional.yaml
# allow "kubectl apply -l managed-by=kustomize --prune ..." # allow "kubectl apply -l app.kubernetes.io/managed-by=kustomize --prune ..."
commonLabels: commonLabels:
managed-by: kustomize app.kubernetes.io/managed-by: kustomize
transformers: transformers:
- transformers/placeholders.yaml - transformers/placeholders.yaml