-
Notifications
You must be signed in to change notification settings - Fork 7
feat: adds a mindthegap container and deployment #637
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
Changes from all commits
f2491b1
eb6e9b3
a868ade
e87de49
ad8013c
5dfb8d5
20f4a83
0f63b82
cea1901
811fff9
bac37f9
bea3522
493f406
9f2de2f
0e752cf
e00d377
c3292e6
490b231
8e5e2ab
2fc959f
2c3e4f3
007aadf
a1a926b
d4ea7e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Copyright 2024 Nutanix. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# This file contains the manifests to run a helmRepository deployment which contains helm charts for our addons. | ||
# The pod is built via goreleaser with configuration from hack/addons. | ||
# | ||
{{ if .Values.selfHostedRegistry }} | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: helm-repository-selfsigned | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
selfSigned: {} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: helm-repository-tls | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
dnsNames: | ||
- helm-repository.{{ .Release.Namespace }}.svc | ||
- helm-repository.{{ .Release.Namespace }}.svc.cluster.local | ||
issuerRef: | ||
name: helm-repository-selfsigned | ||
kind: Issuer | ||
secretName: helm-repository-tls | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's add tolerations and node affinity ( |
||
metadata: | ||
name: helm-repository | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app: helm-repository | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
type: Recreate | ||
selector: | ||
matchLabels: | ||
app: helm-repository # deployment will track pods it generates because of this | ||
template: | ||
metadata: | ||
labels: | ||
app: helm-repository # pods have this label, and Service and Deployment depend on it | ||
spec: | ||
containers: | ||
- name: helm-repository | ||
ports: | ||
- name: serve | ||
protocol: TCP | ||
containerPort: 5000 | ||
image: "{{ .Values.helmRepositoryImage.repository }}:{{ .Values.helmRepositoryImage.tag | default $.Chart.AppVersion }}" | ||
imagePullPolicy: "{{ .Values.image.pullPolicy }}" | ||
volumeMounts: | ||
- name: certs-vol | ||
mountPath: "/certs" | ||
readOnly: true | ||
env: | ||
volumes: | ||
- name: certs-vol | ||
secret: | ||
secretName: helm-repository-tls | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: helm-repository | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
selector: | ||
app: helm-repository | ||
ports: | ||
- port: 443 | ||
targetPort: 5000 | ||
type: ClusterIP | ||
{{ end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,6 +84,9 @@ hooks: | |
|
||
helmAddonsConfigMap: default-helm-addons-config | ||
|
||
selfHostedRegistry: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we combine this with
|
||
|
||
|
||
deployDefaultClusterClasses: true | ||
|
||
deployment: | ||
|
@@ -94,6 +97,11 @@ image: | |
tag: "" | ||
pullPolicy: IfNotPresent | ||
|
||
helmRepositoryImage: | ||
repository: ghcr.io/nutanix-cloud-native/caren-helm-reg | ||
tag: "" | ||
pullPolicy: IfNotPresent | ||
|
||
# -- Optional secrets used for pulling the container image | ||
imagePullSecrets: [] | ||
# - name: Secret with Registry credentials | ||
|
Uh oh!
There was an error while loading. Please reload this page.