Skip to content

Commit

Permalink
chore: Deploy tenant-settings and adhoc-profiles microservices (#3417)
Browse files Browse the repository at this point in the history
* chore: Deploy tenant-settings and adhoc-profiles microservices

They were so far not exposed in the values.yaml

Also adding them to ingress routes

* Do not run the super linter recursively

* Switch from StatefulSet to Deployment
  • Loading branch information
simonswine authored Jul 16, 2024
1 parent a9ae4a9 commit aac2a88
Show file tree
Hide file tree
Showing 5 changed files with 399 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/helm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
call-lint:
uses: grafana/helm-charts/.github/workflows/linter.yml@main
with:
filter_regex_include: .*operations/pyroscope/helm/.*
filter_regex_include: operations/pyroscope/helm/pyroscope/templates/.*

call-lint-test:
uses: grafana/helm-charts/.github/workflows/lint-test.yaml@main
Expand Down
332 changes: 332 additions & 0 deletions operations/pyroscope/helm/pyroscope/rendered/micro-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@
# Source: pyroscope/templates/deployments-statefulsets.yaml
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: pyroscope-dev-ad-hoc-profiles
namespace: default
labels:
helm.sh/chart: pyroscope-1.6.1
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/version: "1.6.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "ad-hoc-profiles"
spec:
maxUnavailable: 1
selector:
matchLabels:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "ad-hoc-profiles"
---
# Source: pyroscope/templates/deployments-statefulsets.yaml
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: pyroscope-dev-compactor
namespace: default
Expand Down Expand Up @@ -146,6 +167,27 @@ spec:
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "store-gateway"
---
# Source: pyroscope/templates/deployments-statefulsets.yaml
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: pyroscope-dev-tenant-settings
namespace: default
labels:
helm.sh/chart: pyroscope-1.6.1
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/version: "1.6.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "tenant-settings"
spec:
maxUnavailable: 1
selector:
matchLabels:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "tenant-settings"
---
# Source: pyroscope/charts/alloy/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
Expand Down Expand Up @@ -1723,6 +1765,57 @@ spec:
# Source: pyroscope/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: pyroscope-dev-ad-hoc-profiles
namespace: default
labels:
helm.sh/chart: pyroscope-1.6.1
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/version: "1.6.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "ad-hoc-profiles"
spec:
type: ClusterIP
ports:
- port: 4040
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "ad-hoc-profiles"
---
# Source: pyroscope/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: pyroscope-dev-ad-hoc-profiles-headless
namespace: default
labels:
helm.sh/chart: pyroscope-1.6.1
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/version: "1.6.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "ad-hoc-profiles"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4040
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "ad-hoc-profiles"
---
# Source: pyroscope/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: pyroscope-dev-compactor
namespace: default
Expand Down Expand Up @@ -2077,6 +2170,151 @@ spec:
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "store-gateway"
---
# Source: pyroscope/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: pyroscope-dev-tenant-settings
namespace: default
labels:
helm.sh/chart: pyroscope-1.6.1
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/version: "1.6.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "tenant-settings"
spec:
type: ClusterIP
ports:
- port: 4040
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "tenant-settings"
---
# Source: pyroscope/templates/services.yaml
apiVersion: v1
kind: Service
metadata:
name: pyroscope-dev-tenant-settings-headless
namespace: default
labels:
helm.sh/chart: pyroscope-1.6.1
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/version: "1.6.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "tenant-settings"
spec:
type: ClusterIP
clusterIP: None
ports:
- port: 4040
targetPort: http2
protocol: TCP
name: http2
selector:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "tenant-settings"
---
# Source: pyroscope/templates/deployments-statefulsets.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: pyroscope-dev-ad-hoc-profiles
namespace: default
labels:
helm.sh/chart: pyroscope-1.6.1
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/version: "1.6.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "ad-hoc-profiles"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "ad-hoc-profiles"
template:
metadata:
annotations:
checksum/config: dde1479a6b672fba848d9db186796ead0de4454310cf8fdf8185339c47b35812
profiles.grafana.com/cpu.port_name: http2
profiles.grafana.com/cpu.scrape: "true"
profiles.grafana.com/goroutine.port_name: http2
profiles.grafana.com/goroutine.scrape: "true"
profiles.grafana.com/memory.port_name: http2
profiles.grafana.com/memory.scrape: "true"
labels:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "ad-hoc-profiles"
name: "ad-hoc-profiles"
spec:
serviceAccountName: pyroscope-dev
securityContext:
fsGroup: 10001
runAsNonRoot: true
runAsUser: 10001
dnsPolicy: ClusterFirst
containers:
- name: "ad-hoc-profiles"
securityContext:
{}
image: "grafana/pyroscope:1.6.1"
imagePullPolicy: IfNotPresent
args:
- "-target=ad-hoc-profiles"
- "-self-profiling.disable-push=true"
- "-server.http-listen-port=4040"
- "-memberlist.cluster-label=default-pyroscope-dev"
- "-memberlist.join=dns+pyroscope-dev-memberlist.default.svc.cluster.local.:7946"
- "-config.file=/etc/pyroscope/config.yaml"
- "-runtime-config.file=/etc/pyroscope/overrides/overrides.yaml"
- "-log.level=debug"
- "-store-gateway.sharding-ring.replication-factor=3"
ports:
- name: http2
containerPort: 4040
protocol: TCP
- name: memberlist
containerPort: 7946
protocol: TCP
readinessProbe:
httpGet:
path: /ready
port: http2
scheme: HTTP
volumeMounts:
- name: config
mountPath: /etc/pyroscope/config.yaml
subPath: config.yaml
- name: overrides-config
mountPath: /etc/pyroscope/overrides/
- name: data
mountPath: /data
resources:
limits:
memory: 4Gi
requests:
cpu: 0.1
memory: 16Mi
volumes:
- name: config
configMap:
name: pyroscope-dev-config
- name: overrides-config
configMap:
name: pyroscope-dev-overrides-config
- name: data
emptyDir: {}
---
# Source: pyroscope/templates/deployments-statefulsets.yaml
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -2453,6 +2691,100 @@ spec:
- name: data
emptyDir: {}
---
# Source: pyroscope/templates/deployments-statefulsets.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: pyroscope-dev-tenant-settings
namespace: default
labels:
helm.sh/chart: pyroscope-1.6.1
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/version: "1.6.1"
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/component: "tenant-settings"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "tenant-settings"
template:
metadata:
annotations:
checksum/config: dde1479a6b672fba848d9db186796ead0de4454310cf8fdf8185339c47b35812
profiles.grafana.com/cpu.port_name: http2
profiles.grafana.com/cpu.scrape: "true"
profiles.grafana.com/goroutine.port_name: http2
profiles.grafana.com/goroutine.scrape: "true"
profiles.grafana.com/memory.port_name: http2
profiles.grafana.com/memory.scrape: "true"
labels:
app.kubernetes.io/name: pyroscope
app.kubernetes.io/instance: pyroscope-dev
app.kubernetes.io/component: "tenant-settings"
name: "tenant-settings"
spec:
serviceAccountName: pyroscope-dev
securityContext:
fsGroup: 10001
runAsNonRoot: true
runAsUser: 10001
dnsPolicy: ClusterFirst
containers:
- name: "tenant-settings"
securityContext:
{}
image: "grafana/pyroscope:1.6.1"
imagePullPolicy: IfNotPresent
args:
- "-target=tenant-settings"
- "-self-profiling.disable-push=true"
- "-server.http-listen-port=4040"
- "-memberlist.cluster-label=default-pyroscope-dev"
- "-memberlist.join=dns+pyroscope-dev-memberlist.default.svc.cluster.local.:7946"
- "-config.file=/etc/pyroscope/config.yaml"
- "-runtime-config.file=/etc/pyroscope/overrides/overrides.yaml"
- "-log.level=debug"
- "-store-gateway.sharding-ring.replication-factor=3"
ports:
- name: http2
containerPort: 4040
protocol: TCP
- name: memberlist
containerPort: 7946
protocol: TCP
readinessProbe:
httpGet:
path: /ready
port: http2
scheme: HTTP
volumeMounts:
- name: config
mountPath: /etc/pyroscope/config.yaml
subPath: config.yaml
- name: overrides-config
mountPath: /etc/pyroscope/overrides/
- name: data
mountPath: /data
resources:
limits:
memory: 4Gi
requests:
cpu: 0.1
memory: 16Mi
volumes:
- name: config
configMap:
name: pyroscope-dev-config
- name: overrides-config
configMap:
name: pyroscope-dev-overrides-config
- name: data
emptyDir: {}
---
# Source: pyroscope/charts/alloy/templates/controllers/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
Expand Down
Loading

0 comments on commit aac2a88

Please sign in to comment.