Giter Club home page Giter Club logo

Comments (15)

jeblackmore avatar jeblackmore commented on July 25, 2024 3

Many thanks @waseem-h, that fixes it for me.

from reloader.

waseem-h avatar waseem-h commented on July 25, 2024 2

@jeblackmore The upstream stable helm chart repo is not updated to the latest version and it doesn't support kubernetes 1.16.x. You need to install reloader from our chart repository by running the following(Make sure that you have uninstalled the previous version):

helm repo add stakater https://stakater.github.io/stakater-charts
helm repo update
helm install stakater/reloader

Closing it for now. Feel free to re-open if you still see the issue in the latest version

from reloader.

rasheedamir avatar rasheedamir commented on July 25, 2024 1

@aliartiza75 can you plz take a look?

from reloader.

aliartiza75 avatar aliartiza75 commented on July 25, 2024

Hi, @jeblackmore,

Kindly share you helm manifest.

from reloader.

jeblackmore avatar jeblackmore commented on July 25, 2024

Hi.

I haven't created a Helm manifest, I am just doing:

helm install stable/reloader

on the command line.

from reloader.

aliartiza75 avatar aliartiza75 commented on July 25, 2024

@jeblackmore Kindly share your deployment manifest.

from reloader.

jeblackmore avatar jeblackmore commented on July 25, 2024

Do you mean the output of

helm get manifest reloader

?

from reloader.

aliartiza75 avatar aliartiza75 commented on July 25, 2024

no, I want the manifest of one of your deployments in which you added the reloader specific annotations.

from reloader.

jeblackmore avatar jeblackmore commented on July 25, 2024
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "core-demo.name" . }}
  labels:
{{ include "core-demo.labels" . | indent 4 }}
  annotations:
    configmap.reloader.stakater.com/reload: "{{ include "core-demo.name" . }}-configmap"
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      app.kubernetes.io/name: {{ include "core-demo.name" . }}
      app.kubernetes.io/instance: {{ .Release.Name }}
  template:
    metadata:
      labels:
        app.kubernetes.io/name: {{ include "core-demo.name" . }}
        app.kubernetes.io/instance: {{ .Release.Name }}
    spec:
    {{- with .Values.global.imagePullSecrets }}
      imagePullSecrets:
        {{- toYaml . | nindent 8 }}
    {{- end }}
      serviceAccountName: {{ template "core-demo.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: http
              containerPort: 8080
              protocol: TCP
          envFrom:
          - configMapRef:
              name: {{ include "core-demo.name" . }}-configmap
#          livenessProbe:
#            httpGet:
#              path: /
#              port: http
          readinessProbe:
            httpGet:
              path: /actuator/health
              port: http
            initialDelaySeconds: 30
            timeoutSeconds: 5
          resources:
            {{- toYaml .Values.resources | nindent 12 }}
      {{- with .Values.nodeSelector }}
      nodeSelector:
        {{- toYaml . | nindent 8 }}
      {{- end }}
    {{- with .Values.affinity }}
      affinity:
        {{- toYaml . | nindent 8 }}
    {{- end }}
    {{- with .Values.tolerations }}
      tolerations:
        {{- toYaml . | nindent 8 }}
    {{- end }}

from reloader.

jeblackmore avatar jeblackmore commented on July 25, 2024

With the corresponding ConfigMap:

apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "core-demo.name" . }}-configmap
  labels:
    app: {{ include "core-demo.name" . }}
data:
  SPRING_APPLICATION_JSON: |-
    {
      "management": {
        "endpoints": {
          "web": {
            "exposure": {
              "include": "{{ .Values.actuatorEndpoints }}"
            }
          }
        }
      }
    }

from reloader.

jeblackmore avatar jeblackmore commented on July 25, 2024

I assumed that the error messages in the Pod log indicated that something isn't configured correctly with Reloader rather than with my deployments. Does Reloader just output those errors if it doesn't find any annotated deployments?

from reloader.

aliartiza75 avatar aliartiza75 commented on July 25, 2024

@jeblackmore the errors show that it is not able to find the deployments in your cluster. I will try to replicate the scenario to find out the exact issue.

what is the version of your k8s cluster?

from reloader.

jeblackmore avatar jeblackmore commented on July 25, 2024

Thanks. Its v1.16.2

from reloader.

jeblackmore avatar jeblackmore commented on July 25, 2024

Hi. Any luck reproducing it?

from reloader.

aliartiza75 avatar aliartiza75 commented on July 25, 2024

@jeblackmore. What is the helm version you are currently using?

from reloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.