Skip to content

Commit

Permalink
update 07/08/24 09:25:53
Browse files Browse the repository at this point in the history
  • Loading branch information
Qovery committed Jul 8, 2024
1 parent aace257 commit 8c82a05
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@ kind: MutatingWebhookConfiguration
metadata:
name: {{ include "qovery-cluster-agent.fullname" . }}-webhook
namespace: qovery
{{- if not .Values.useSelfSignCertificate }}
annotations:
cert-manager.io/inject-ca-from: qovery/{{ include "qovery-cluster-agent.fullname" . }}-tls
{{- end }}

webhooks:
- name: {{ include "qovery-cluster-agent.fullname" . }}-service.qovery.svc
clientConfig:
{{- if .Values.useSelfSignCertificate }}
caBundle: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURNVENDQWhtZ0F3SUJBZ0lVQVZKdEc5SDRiYng4bExUNGRJWFBpQW4yUlNBd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0p6RWxNQ01HQTFVRUF3d2NjVzkyWlhKNUxXTnNkWE4wWlhJdFlXZGxiblF0ZDJWaWFHOXZhekFnRncweQpOREEzTURNeE5UVXdOVFZhR0E4ek1ERXdNREl5TlRFMU5UQTFOVm93SnpFbE1DTUdBMVVFQXd3Y2NXOTJaWEo1CkxXTnNkWE4wWlhJdFlXZGxiblF0ZDJWaWFHOXZhekNDQVNJd0RRWUpLb1pJaHZjTkFRRUJCUUFEZ2dFUEFEQ0MKQVFvQ2dnRUJBTGFsNUU1NmxZSXVOb01OUVBxOW9xYlQwc0xLdWh4alNicUlOQi92N1BRMlFjWEpoUmVNTXI3dQo3VjRVUmorWkxYRHRWUU93NFAzQmVYT25PV0REOFRETVZ5TnI5V3k1VVlWZzRWclJyeDUvSnBRdEdUUHFIZFByCk5wbDBBMkpiR1h1NVU5SlNhR1owNGdpOFNBemdYSS9zQTZ5RlE2SjR1eFZzSVZIbFFCWGY3YnBXTkdhazNNR1cKWVJzSzBhaHhDMlloRm16RjNjUmNKNUVXWnFkekpDd2x6RCtsNEQvUDZFcWN4ai8zUTZpMGl0L2tHWlJ1YXFCbwp2TlZWbmE1SzJtbG11MHNsQlBHTXhRWkpNRVNSSlVBTzZSbWtoYUMzaUhkVVJTTitpN09YTk5tSEhQRW5YTXBECnJGRjJ3WW5tL0tlOWFTd0NlMyt2L1VlNHBaZWFjeDhDQXdFQUFhTlRNRkV3SFFZRFZSME9CQllFRkgzUk00ZjEKZ0pzeGRQNnBmSk9hNlVyVHlDOWNNQjhHQTFVZEl3UVlNQmFBRkgzUk00ZjFnSnN4ZFA2cGZKT2E2VXJUeUM5YwpNQThHQTFVZEV3RUIvd1FGTUFNQkFmOHdEUVlKS29aSWh2Y05BUUVMQlFBRGdnRUJBRmNCRWpZaFlzSWZtYXBzCit6Mjh6aGpSYXMrbGhBQW0yV1BseEZkbE5zbXFua2R2eEJRcmlBRmJEQm51RUxVdElCUGxPdHozMlhnRzV0MjcKSExXd2pWWkFRNmRERjJJWVQzeWJDaExnYkdycVR6UFNCYTdrNm1WZUZ6cmZEVmNKTVhGdHJ3TUVqODgvT3pGaQpOQjhXdjNabGFxUGtsS1FyR2IrWDBCYVhKckswWEIrY0l5R1FCZ2QxR0tXcGIycEJWejRvc1FHMUN5ZHpuTllYCkp0ekxHb2NwdTljbHNpcmxjVVVYNjlHUVBNZldyS0hIRGtrejQ3NWFnT2pkSWI5TUFjZWwxWENsQmdlWHJuMkwKNkFGaGNYYnhVRVIzUjNTQlJtM3d6ZVowMllUYVpMVS9XOVYxam1hbVIwSDVsSzEwOU9CM2VPTmdVeC9uTjlBUApvU2VhN0djPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="
{{- end}}
service:
name: {{ include "qovery-cluster-agent.fullname" . }}-service
namespace: qovery
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not .Values.useSelfSignCertificate }}
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
Expand Down Expand Up @@ -40,3 +41,4 @@ spec:
# Issuer references are always required.
issuerRef:
name: {{ include "qovery-cluster-agent.fullname" . }}-issuer
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ spec:
volumes:
- name: tls-certs
secret:
{{- if .Values.useSelfSignCertificate }}
secretName: {{ include "qovery-cluster-agent.fullname" . }}-self-signed-tls
{{- else }}
secretName: {{ include "qovery-cluster-agent.fullname" . }}-tls
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if .Values.useSelfSignCertificate }}
apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
# Set a different name for self-signed secret to avoid conflicts with previous installation
name: {{ include "qovery-cluster-agent.fullname" . }}-self-signed-tls
namespace: qovery
data:
tls.crt: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURWRENDQWp5Z0F3SUJBZ0lVYnNzbXB1bHZJWlRLWHQzdGNpZTREejNhQkZ3d0RRWUpLb1pJaHZjTkFRRUwKQlFBd0p6RWxNQ01HQTFVRUF3d2NjVzkyWlhKNUxXTnNkWE4wWlhJdFlXZGxiblF0ZDJWaWFHOXZhekFnRncweQpOREEzTURNeE5UVTFNalphR0E4ek1ERXdNREl5TlRFMU5UVXlObG93SnpFbE1DTUdBMVVFQXd3Y2NXOTJaWEo1CkxXTnNkWE4wWlhJdFlXZGxiblF0ZDJWaWFHOXZhekNDQVNJd0RRWUpLb1pJaHZjTkFRRUJCUUFEZ2dFUEFEQ0MKQVFvQ2dnRUJBTG5UZCtEMzVCRWZ0SWpUNTdRUjMxS2FaQmlpMUNLOFdOVVJsOFFhM1A5dEtkUEdOUWRiRE9yeApseWxveHIxTWt3SXFaSHkwZXA0cU54UVVZWm1KTUdOK1NpMmtKMEM3VWk5K1hLUHJGelZCbnh6TVNwR2czSFArCndaNmZDenF3OWd3cVBRRVRFbjczbFJDVzJtTUxzbk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lFazlPWVpxRnRETkpiZFdWWnBTazRENmw4VFN1VDdDeEZuMkNhOGlHelQ2SnFqdy9EWFE5NnJSTEYzWWIKZnU3TDJOMFFMdjBkbXZ5bmNqTFFTRnc9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K"
{{- end}}
3 changes: 3 additions & 0 deletions charts/qovery/charts/qovery-cluster-agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ rbac:
create: true
clusterRole: true
apiVersion: v1

# Either we rely on cert-manager, or we use a self signed certificate
useSelfSignCertificate: false
21 changes: 18 additions & 3 deletions charts/qovery/values-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,17 @@ qovery:
shellAgentVersion: &shellAgentVersion set-by-customer
clusterAgentVersion: &clusterAgentVersion set-by-customer
qovery-cluster-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *clusterAgentVersion
environmentVariables:
CLUSTER_ID: *clusterId
CLUSTER_JWT_TOKEN: *jwtToken
LOKI_URL: *lokiUrl
ORGANIZATION_ID: *organizationId
useSelfSignCertificate: true
qovery-shell-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *shellAgentVersion
environmentVariables:
Expand Down Expand Up @@ -167,7 +168,21 @@ ingress-nginx:
topologyKey: kubernetes.io/hostname
maxSkew: 1
whenUnsatisfiable: DoNotSchedule

{%- if enable_karpenter %}
tolerations:
- effect: NoSchedule
key: nodepool/stable
operator: Exists
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: karpenter.sh/nodepool
operator: In
values:
- stable
{%- endif %}
external-dns:
# set the provider to use
provider: set-by-customer
Expand Down
21 changes: 18 additions & 3 deletions charts/qovery/values-demo-aws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,17 @@ qovery:
shellAgentVersion: &shellAgentVersion set-by-customer
clusterAgentVersion: &clusterAgentVersion set-by-customer
qovery-cluster-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *clusterAgentVersion
environmentVariables:
CLUSTER_ID: *clusterId
CLUSTER_JWT_TOKEN: *jwtToken
LOKI_URL: *lokiUrl
ORGANIZATION_ID: *organizationId
useSelfSignCertificate: true
qovery-shell-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *shellAgentVersion
environmentVariables:
Expand Down Expand Up @@ -167,7 +168,21 @@ ingress-nginx:
topologyKey: kubernetes.io/hostname
maxSkew: 1
whenUnsatisfiable: DoNotSchedule

{%- if enable_karpenter %}
tolerations:
- effect: NoSchedule
key: nodepool/stable
operator: Exists
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: karpenter.sh/nodepool
operator: In
values:
- stable
{%- endif %}
external-dns:
fullnameOverride: external-dns
provider: pdns
Expand Down
5 changes: 3 additions & 2 deletions charts/qovery/values-demo-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,17 @@ qovery:
shellAgentVersion: &shellAgentVersion set-by-customer
clusterAgentVersion: &clusterAgentVersion set-by-customer
qovery-cluster-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *clusterAgentVersion
environmentVariables:
CLUSTER_ID: *clusterId
CLUSTER_JWT_TOKEN: *jwtToken
LOKI_URL: *lokiUrl
ORGANIZATION_ID: *organizationId
useSelfSignCertificate: true
qovery-shell-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *shellAgentVersion
environmentVariables:
Expand Down
5 changes: 3 additions & 2 deletions charts/qovery/values-demo-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,17 @@ qovery:
shellAgentVersion: &shellAgentVersion set-by-customer
clusterAgentVersion: &clusterAgentVersion set-by-customer
qovery-cluster-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *clusterAgentVersion
environmentVariables:
CLUSTER_ID: *clusterId
CLUSTER_JWT_TOKEN: *jwtToken
LOKI_URL: ''
ORGANIZATION_ID: *organizationId
useSelfSignCertificate: true
qovery-shell-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *shellAgentVersion
environmentVariables:
Expand Down
5 changes: 3 additions & 2 deletions charts/qovery/values-demo-scaleway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,17 @@ qovery:
shellAgentVersion: &shellAgentVersion set-by-customer
clusterAgentVersion: &clusterAgentVersion set-by-customer
qovery-cluster-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *clusterAgentVersion
environmentVariables:
CLUSTER_ID: *clusterId
CLUSTER_JWT_TOKEN: *jwtToken
LOKI_URL: *lokiUrl
ORGANIZATION_ID: *organizationId
useSelfSignCertificate: true
qovery-shell-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *shellAgentVersion
environmentVariables:
Expand Down
5 changes: 3 additions & 2 deletions charts/qovery/values-gcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,17 @@ qovery:
shellAgentVersion: &shellAgentVersion set-by-customer
clusterAgentVersion: &clusterAgentVersion set-by-customer
qovery-cluster-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *clusterAgentVersion
environmentVariables:
CLUSTER_ID: *clusterId
CLUSTER_JWT_TOKEN: *jwtToken
LOKI_URL: *lokiUrl
ORGANIZATION_ID: *organizationId
useSelfSignCertificate: true
qovery-shell-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *shellAgentVersion
environmentVariables:
Expand Down
5 changes: 3 additions & 2 deletions charts/qovery/values-scaleway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,17 @@ qovery:
shellAgentVersion: &shellAgentVersion set-by-customer
clusterAgentVersion: &clusterAgentVersion set-by-customer
qovery-cluster-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *clusterAgentVersion
environmentVariables:
CLUSTER_ID: *clusterId
CLUSTER_JWT_TOKEN: *jwtToken
LOKI_URL: *lokiUrl
ORGANIZATION_ID: *organizationId
useSelfSignCertificate: true
qovery-shell-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: *shellAgentVersion
environmentVariables:
Expand Down
5 changes: 3 additions & 2 deletions charts/qovery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,17 @@ qovery:
shellAgentVersion: '&shellAgentVersion set-by-customer'
clusterAgentVersion: '&clusterAgentVersion set-by-customer'
qovery-cluster-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: '*clusterAgentVersion'
environmentVariables:
CLUSTER_ID: '*clusterId'
CLUSTER_JWT_TOKEN: '*jwtToken'
LOKI_URL: '*lokiUrl'
ORGANIZATION_ID: '*organizationId'
useSelfSignCertificate: true
qovery-shell-agent:
fullNameOverride: qovery-shell-agent
fullnameOverride: qovery-shell-agent
image:
tag: '*shellAgentVersion'
environmentVariables:
Expand Down

0 comments on commit 8c82a05

Please sign in to comment.