Skip to content
Snippets Groups Projects
Commit 90a25579 authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

pvc monitoring with pod

parent f03a9264
Branches
Tags
1 merge request!6Fully functional version that calculate layer with all stages
Pipeline #76081 passed
...@@ -5,6 +5,14 @@ FROM postgis/postgis:11-3.3-alpine ...@@ -5,6 +5,14 @@ FROM postgis/postgis:11-3.3-alpine
# Arguments # Arguments
ARG NAMESPACE_ENV ARG NAMESPACE_ENV
ARG PGDATA="/arb-data/pgdata"
ARG HTTP_PROXY=""
ENV HTTP_PROXY=$HTTP_PROXY
ENV HTTPS_PROXY=$HTTP_PROXY
###--------------- LOCAL BUILD ONLY --------------------
# ENV POSTGRES_HOST_AUTH_METHOD=trust
###--------------- /LOCAL BUILD ONLY --------------------
USER root USER root
...@@ -12,6 +20,7 @@ ENV PGDATA=/arb-data/pgdata ...@@ -12,6 +20,7 @@ ENV PGDATA=/arb-data/pgdata
RUN mkdir -p $PGDATA && \ RUN mkdir -p $PGDATA && \
chown -R postgres:0 /$PGDATA && \ chown -R postgres:0 /$PGDATA && \
chmod 777 /$PGDATA chmod 777 /$PGDATA
# chmod -R g+rwx /$PGDATA ?? a tester ??
# Entry point. # Entry point.
COPY ./db-init/ /docker-entrypoint-initdb.d/ COPY ./db-init/ /docker-entrypoint-initdb.d/
......
...@@ -25,11 +25,13 @@ spec: ...@@ -25,11 +25,13 @@ spec:
containers: containers:
- name: calqul-pvc-__NAMESPACE_ENV__ - name: calqul-pvc-__NAMESPACE_ENV__
image: registry.gitlab.grandlyon.fr/openshift-as-code/reposit-gl/busybox:1.0 image: registry.gitlab.grandlyon.fr/openshift-as-code/reposit-gl/busybox:1.0
command: ["sh", "-c", "watch -n 30 df -h /mnt/data"] command: ["sh", "-c", "watch -n 30 df -h | grep /mnt/data"]
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /mnt/data - mountPath: /mnt/data
name: data name: data
- mountPath: /mnt/data2
name: data2
resources: resources:
requests: requests:
memory: "32M" memory: "32M"
...@@ -40,4 +42,8 @@ spec: ...@@ -40,4 +42,8 @@ spec:
volumes: volumes:
- name: data - name: data
persistentVolumeClaim: persistentVolumeClaim:
claimName: pvc-03-__NAMESPACE__-claim claimName: pvc-02-__NAMESPACE__-claim
\ No newline at end of file - name: data2
persistentVolumeClaim:
claimName: pvc-03-__NAMESPACE__-claim
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment