Skip to content
Snippets Groups Projects
Select Git revision
  • 203e75e2e2fa3647108f68a272d78be98eb7e7a6
  • master default protected
  • rsync-catalog
  • rsync-vnf-catalog
  • update-gitlabci
  • fix-publish-catalog
  • mongo_ee
  • poc-osm-ltv
  • service_kpi_nsd_and_vnfd
  • debug-magma-helm
  • O-RAN
  • vyos_update
  • two_openldap
  • autoheal
  • oai-helm
  • hackfest15_charmed_osm
  • h15
  • fix_multiattach
  • use-apife-image
  • keep_volumes
  • fix_powerdns_scale_scripts
  • OSM-IM
22 results

statefulset.yaml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    statefulset.yaml 1.97 KiB
    apiVersion: apps/v1
    kind: StatefulSet
    metadata:
      name: {{ include "eechart.fullname" . }}
      labels:
    {{ include "eechart.labels" . | indent 4 }}
    spec:
      serviceName:  {{ include "eechart.fullname" . }} 
      replicas: {{ .Values.replicaCount }}
      selector:
        matchLabels:
          app.kubernetes.io/name: {{ include "eechart.name" . }}
          app.kubernetes.io/instance: {{ .Release.Name }}
      template:
        metadata:
          labels:
            app.kubernetes.io/name: {{ include "eechart.name" . }}
            app.kubernetes.io/instance: {{ .Release.Name }}
        spec:
          imagePullSecrets:
          - name: regcred 
          serviceAccountName: {{ template "eechart.serviceAccountName" . }}
          securityContext:
            {{- toYaml .Values.podSecurityContext | nindent 8 }}
          containers:
            - name: {{ .Chart.Name }}
              securityContext:
                {{- toYaml .Values.securityContext | nindent 12 }}
              image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
              imagePullPolicy: {{ .Values.image.pullPolicy }}
              ports:
                - name: grpc
                  containerPort: 50051
                  protocol: TCP          
              resources:
                {{- toYaml .Values.resources | nindent 12 }}          
              volumeMounts:
              - name: osm-ee
                mountPath: /app/storage  
              - name: osm-ee-source
                mountPath: /app/EE/osm_ee/vnf      
          volumes:      
          - name: osm-ee-source
            configMap: 
              name:  {{ include "eechart.fullname" . }}
      volumeClaimTemplates:
        - metadata:
            name: osm-ee
          spec:
            accessModes: [ "ReadWriteOnce" ]
            resources:
              requests:
                storage: 1Gi
          {{- with .Values.nodeSelector }}
          nodeSelector:
            {{- toYaml . | nindent 8 }}
          {{- end }}
        {{- with .Values.affinity }}
          affinity:
            {{- toYaml . | nindent 8 }}
        {{- end }}
        {{- with .Values.tolerations }}
          tolerations:
            {{- toYaml . | nindent 8 }}
        {{- end }}