diff --git a/pushgateway/kustomization.yaml b/pushgateway/kustomization.yaml index 0bcdf95e..5f3cbeeb 100644 --- a/pushgateway/kustomization.yaml +++ b/pushgateway/kustomization.yaml @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - - pushgateway-shared.yaml + - pushgateway.yaml diff --git a/pushgateway/pushgateway-shared.yaml b/pushgateway/pushgateway.yaml similarity index 71% rename from pushgateway/pushgateway-shared.yaml rename to pushgateway/pushgateway.yaml index 6eab97bf..2a666c54 100644 --- a/pushgateway/pushgateway-shared.yaml +++ b/pushgateway/pushgateway.yaml @@ -4,7 +4,7 @@ metadata: name: prometheus-pushgateway labels: app.kubernetes.io/name: prometheus-pushgateway - app.kubernetes.io/version: v1.4.0 + app.kubernetes.io/version: v1.10.0 spec: clusterIP: None ports: @@ -16,7 +16,7 @@ spec: kind: Deployment apiVersion: apps/v1 metadata: - name: &app prometheus-pushgateway-shared + name: prometheus-pushgateway-shared spec: replicas: 1 selector: @@ -33,19 +33,25 @@ spec: spec: containers: - name: prometheus-pushgateway - image: prom/pushgateway:v1.4.0 + image: prom/pushgateway:v1.10.0 + args: + - "--log.level=warn" livenessProbe: httpGet: - path: /#/status + path: /-/healthy port: 9091 - initialDelaySeconds: 30 + initialDelaySeconds: 10 timeoutSeconds: 10 readinessProbe: httpGet: - path: /#/status + path: /-/ready port: 9091 - initialDelaySeconds: 30 + initialDelaySeconds: 10 timeoutSeconds: 10 ports: - containerPort: 9091 name: metrics + securityContext: + fsGroup: 65534 + runAsNonRoot: true + runAsUser: 65534