Skip to content

Commit

Permalink
reset security context for store
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Mange <[email protected]>
  • Loading branch information
thibaultmg committed Oct 16, 2023
1 parent 30e48b4 commit c501736
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,7 @@ objects:
name: hashmod-config
nodeSelector:
kubernetes.io/os: linux
securityContext:
fsGroup: 65534
runAsUser: 65534
securityContext: {}
serviceAccountName: observatorium-thanos-store-default
terminationGracePeriodSeconds: 120
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,7 @@ objects:
name: hashmod-config
nodeSelector:
kubernetes.io/os: linux
securityContext:
fsGroup: 65534
runAsUser: 65534
securityContext: {}
serviceAccountName: observatorium-thanos-store-rhel
terminationGracePeriodSeconds: 120
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,7 @@ objects:
name: hashmod-config
nodeSelector:
kubernetes.io/os: linux
securityContext:
fsGroup: 65534
runAsUser: 65534
securityContext: {}
serviceAccountName: observatorium-thanos-store-telemeter
terminationGracePeriodSeconds: 120
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,7 @@ objects:
name: hashmod-config
nodeSelector:
kubernetes.io/os: linux
securityContext:
fsGroup: 65534
runAsUser: 65534
securityContext: {}
serviceAccountName: observatorium-thanos-store-default
terminationGracePeriodSeconds: 120
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,7 @@ objects:
name: hashmod-config
nodeSelector:
kubernetes.io/os: linux
securityContext:
fsGroup: 65534
runAsUser: 65534
securityContext: {}
serviceAccountName: observatorium-thanos-store-rhel
terminationGracePeriodSeconds: 120
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,7 @@ objects:
name: hashmod-config
nodeSelector:
kubernetes.io/os: linux
securityContext:
fsGroup: 65534
runAsUser: 65534
securityContext: {}
serviceAccountName: observatorium-thanos-store-telemeter
terminationGracePeriodSeconds: 120
volumes:
Expand Down
1 change: 1 addition & 0 deletions services_go/observatorium/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ func makeStore(namespace, imageTag string, cfg ThanosTenantConfig[store.StoreSta
storeStatefulSet.Image = thanosImage
storeStatefulSet.ImageTag = imageTag
storeStatefulSet.Namespace = namespace
storeStatefulSet.SecurityContext = corev1.PodSecurityContext{}
storeStatefulSet.Affinity.PodAntiAffinity.PreferredDuringSchedulingIgnoredDuringExecution[0].PodAffinityTerm.Namespaces = []string{}
storeStatefulSet.Replicas = 1
delete(storeStatefulSet.PodResources.Limits, corev1.ResourceCPU)
Expand Down

0 comments on commit c501736

Please sign in to comment.