Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a helm chart for kubernetes deployment #162

Open
stan-dot opened this issue Oct 8, 2024 · 8 comments
Open

Add a helm chart for kubernetes deployment #162

stan-dot opened this issue Oct 8, 2024 · 8 comments

Comments

@stan-dot
Copy link

stan-dot commented Oct 8, 2024

No description provided.

@stan-dot
Copy link
Author

stan-dot commented Oct 8, 2024

deployent needs to reference an existing image

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "channelfinder.fullname" . }}
spec:
  replicas: 1
  selector:
    matchLabels:
      app: {{ include "channelfinder.name" . }}
  template:
    metadata:
      labels:
        app: {{ include "channelfinder.name" . }}
    spec:
      containers:
        - name: channelfinder
          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          ports:
            - containerPort: {{ .Values.service.port }}
          env:
            - name: ELASTICSEARCH_NETWORK_HOST
              value: "elasticsearch-cf"
          command:
            - /bin/bash
            - -c
            - |
              until curl --silent --fail http://elasticsearch-cf:9200/_cluster/health; do
                echo 'Waiting for Elasticsearch';
                sleep 1;
              done;
              java -jar /channelfinder/ChannelFinder-*.jar
          volumeMounts:
            - name: es-data
              mountPath: /usr/share/elasticsearch/data
      volumes:
        - name: es-data
          persistentVolumeClaim:
            claimName: es-data

@stan-dot
Copy link
Author

stan-dot commented Oct 8, 2024

all existing images seem old
https://hub.docker.com/search?q=channelfinder

@stan-dot
Copy link
Author

stan-dot commented Oct 8, 2024

might choose to push to the DLS registry

https://dev-portal.diamond.ac.uk/guide/kubernetes/tutorials/containers/

@stan-dot
Copy link
Author

stan-dot commented Oct 8, 2024

with this

image:
  repository: channelfinder
  tag: "latest"
  pullPolicy: IfNotPresent
  

https://confluence.diamond.ac.uk/display/CLOUD/Container+Registry

@stan-dot
Copy link
Author

stan-dot commented Oct 8, 2024

helm upgrade --install channelfinder helm --namespace $NAMESPACE Error: UPGRADE FAILED: cannot patch "channelfinder-helm" with kind Deployment: admission webhook "mutate.kyverno.svc-fail" denied the request: failed to add image information to the policy rule context: invalid image :alpha

tag invalid?

@stan-dot
Copy link
Author

stan-dot commented Oct 8, 2024

ah, either semver or latest I guess

@stan-dot
Copy link
Author

stan-dot commented Oct 8, 2024

latest also not accepted for some reason

@stan-dot
Copy link
Author

stan-dot commented Oct 8, 2024

0.1.0 is also failing

helm upgrade --install channelfinder helm --namespace $NAMESPACE
Error: UPGRADE FAILED: cannot patch "channelfinder-helm" with kind Deployment: admission webhook "mutate.kyverno.svc-fail" denied the request: failed to add image information to the policy rule context: invalid image :0.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant