diff --git a/Dockerfile b/Dockerfile index e3051e0..37f96b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22 AS builder +FROM golang:1.23 AS builder WORKDIR /go/src/github.com/rakutentech/passenger-go-exporter COPY go.mod go.sum ./ diff --git a/test/kubernetes/base/deployment.yaml b/test/kubernetes/base/deployment.yaml index ad324d9..4ecf0e7 100644 --- a/test/kubernetes/base/deployment.yaml +++ b/test/kubernetes/base/deployment.yaml @@ -19,60 +19,61 @@ spec: labels: app: example spec: + replicas: 0 volumes: - - name: tmp - emptyDir: {} + - name: tmp + emptyDir: {} containers: - - name: example - image: example - imagePullPolicy: IfNotPresent - ports: - - containerPort: 3000 - name: http - protocol: TCP - livenessProbe: - httpGet: - path: / - port: 3000 - readinessProbe: - timeoutSeconds: 2 - httpGet: - path: / - port: 3000 - env: - - name: PASSENGER_INSTANCE_REGISTRY_DIR - value: /tmp/ruby - volumeMounts: - - mountPath: /tmp/ruby - name: tmp - - name: passenger-exporter - image: passenger-exporter - imagePullPolicy: IfNotPresent - env: - - name: PASSENGER_INSTANCE_REGISTRY_DIR - value: /tmp/ruby - ports: - - containerPort: 9768 - name: http - protocol: TCP - livenessProbe: - initialDelaySeconds: 10 - timeoutSeconds: 2 - httpGet: - path: /health - port: 9768 - readinessProbe: - timeoutSeconds: 1 - httpGet: - path: /health - port: 9768 - resources: - limits: - cpu: 20m - memory: 60Mi - requests: - cpu: 20m - memory: 60Mi - volumeMounts: - - mountPath: /tmp/ruby - name: tmp + - name: example + image: example + imagePullPolicy: IfNotPresent + ports: + - containerPort: 3000 + name: http + protocol: TCP + livenessProbe: + httpGet: + path: / + port: 3000 + readinessProbe: + timeoutSeconds: 2 + httpGet: + path: / + port: 3000 + env: + - name: PASSENGER_INSTANCE_REGISTRY_DIR + value: /tmp/ruby + volumeMounts: + - mountPath: /tmp/ruby + name: tmp + - name: passenger-exporter + image: passenger-exporter + imagePullPolicy: IfNotPresent + env: + - name: PASSENGER_INSTANCE_REGISTRY_DIR + value: /tmp/ruby + ports: + - containerPort: 9768 + name: http + protocol: TCP + livenessProbe: + initialDelaySeconds: 10 + timeoutSeconds: 2 + httpGet: + path: /health + port: 9768 + readinessProbe: + timeoutSeconds: 1 + httpGet: + path: /health + port: 9768 + resources: + limits: + cpu: 20m + memory: 60Mi + requests: + cpu: 20m + memory: 60Mi + volumeMounts: + - mountPath: /tmp/ruby + name: tmp