Attention: Deprecation notice for Bintray, JCenter, GoCenter and ChartCenter. Learn More

wyrihaximusnet/commons

Chart version: 0.1.1
Api version: v2
App version: n/a
commons library
library
Chart Type
Active
Status
Unknown
License
416
Downloads
https://helm.wyrihaximus.net
Set me up:
helm repo add center https://repo.chartcenter.io
Install Chart:
helm install commons center/wyrihaximusnet/commons
Versions (0)

Commons

Opinionated helm library chart containing metadata helpers for helm application charts.

Example deployment using helpers from this chart:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ template "commons.fullname" . }}
  labels:
    {{- include "commons.labels" . | nindent 4 }}
    app.kubernetes.io/component: controller
spec:
  selector:
    matchLabels:
      {{- include "commons.selectorLabels" . | nindent 6 }}
  replicas: 1
  template:
    metadata:
      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "9696"
      labels:
        {{- include "commons.labels" . | nindent 8 }}
    spec:
      containers:
        - name: default-backend
          image: "ghcr.io/wyrihaximusnet/default-backend:random"
          imagePullPolicy: Always
          ports:
            - name: default-backend
              containerPort: 6969
              protocol: TCP
            - name: metrics
              containerPort: 9696
              protocol: TCP
          livenessProbe:
            failureThreshold: 6
            httpGet:
              path: /
              port: metrics
          readinessProbe:
            failureThreshold: 6
            httpGet:
              path: /
              port: metrics
          startupProbe:
            httpGet:
              path: /
              port: metrics
            failureThreshold: 90
            periodSeconds: 1
          resources:
            limits:
              cpu: 75m
              memory: 64Mi
            requests:
              cpu: 75m
              memory: 64Mi
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - labelSelector:
              matchExpressions:
              - key: appRevision
                operator: In
                values:
                - {{ template "commons.nameRevision" . }}
            topologyKey: "kubernetes.io/hostname"