Commit 6b221a33 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Manifests:

- Disable WebUI/Grafana
parent 55c6d4ea
Loading
Loading
Loading
Loading
+59 −59
Original line number Diff line number Diff line
@@ -12,17 +12,17 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: grafana-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
---
#apiVersion: v1
#kind: PersistentVolumeClaim
#metadata:
#  name: grafana-pvc
#spec:
#  accessModes:
#    - ReadWriteOnce
#  resources:
#    requests:
#      storage: 1Gi
#---
apiVersion: apps/v1
kind: Deployment
metadata:
@@ -72,51 +72,51 @@ spec:
            limits:
              cpu: 1000m
              memory: 1024Mi
        - name: grafana
          image: grafana/grafana:8.5.22
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 3000
              name: http-grafana
              protocol: TCP
          env:
            - name: GF_SERVER_ROOT_URL
              value: "http://0.0.0.0:3000/grafana/"
            - name: GF_SERVER_SERVE_FROM_SUB_PATH
              value: "true"
          readinessProbe:
            failureThreshold: 60
            httpGet:
              #path: /robots.txt
              path: /login
              port: 3000
              scheme: HTTP
            initialDelaySeconds: 1
            periodSeconds: 1
            successThreshold: 1
            timeoutSeconds: 2
          livenessProbe:
            failureThreshold: 60
            initialDelaySeconds: 1
            periodSeconds: 1
            successThreshold: 1
            tcpSocket:
              port: 3000
            timeoutSeconds: 1
          resources:
            requests:
              cpu: 250m
              memory: 512Mi
            limits:
              cpu: 500m
              memory: 1024Mi
          volumeMounts:
            - mountPath: /var/lib/grafana
              name: grafana-pv
      volumes:
        - name: grafana-pv
          persistentVolumeClaim:
            claimName: grafana-pvc
      #  - name: grafana
      #    image: grafana/grafana:8.5.22
      #    imagePullPolicy: IfNotPresent
      #    ports:
      #      - containerPort: 3000
      #        name: http-grafana
      #        protocol: TCP
      #    env:
      #      - name: GF_SERVER_ROOT_URL
      #        value: "http://0.0.0.0:3000/grafana/"
      #      - name: GF_SERVER_SERVE_FROM_SUB_PATH
      #        value: "true"
      #    readinessProbe:
      #      failureThreshold: 60
      #      httpGet:
      #        #path: /robots.txt
      #        path: /login
      #        port: 3000
      #        scheme: HTTP
      #      initialDelaySeconds: 1
      #      periodSeconds: 1
      #      successThreshold: 1
      #      timeoutSeconds: 2
      #    livenessProbe:
      #      failureThreshold: 60
      #      initialDelaySeconds: 1
      #      periodSeconds: 1
      #      successThreshold: 1
      #      tcpSocket:
      #        port: 3000
      #      timeoutSeconds: 1
      #    resources:
      #      requests:
      #        cpu: 250m
      #        memory: 512Mi
      #      limits:
      #        cpu: 500m
      #        memory: 1024Mi
      #    volumeMounts:
      #      - mountPath: /var/lib/grafana
      #        name: grafana-pv
      #volumes:
      #  - name: grafana-pv
      #    persistentVolumeClaim:
      #      claimName: grafana-pvc
---
apiVersion: v1
kind: Service
@@ -132,9 +132,9 @@ spec:
    - name: webui
      port: 8004
      targetPort: 8004
    - name: grafana
      port: 3000
      targetPort: 3000
    #- name: grafana
    #  port: 3000
    #  targetPort: 3000
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler