-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from SparebankenVest/at-add-svai-alz-support
at add svai alz support
- Loading branch information
Showing
11 changed files
with
180 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- $name := include "svai.name" . -}} | ||
|
||
apiVersion: image.toolkit.fluxcd.io/v1beta2 | ||
kind: ImageRepository | ||
metadata: | ||
name: {{ $name }} | ||
spec: | ||
image: {{ .Values.image.repository }} | ||
interval: 1m0s | ||
provider: azure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{- $name := include "svai.name" . -}} | ||
|
||
apiVersion: image.toolkit.fluxcd.io/v1beta1 | ||
kind: ImageUpdateAutomation | ||
metadata: | ||
name: {{ $name }} | ||
spec: | ||
sourceRef: | ||
kind: GitRepository | ||
name: {{ .Values.gitOps.repoName }} | ||
namespace: flux-system | ||
git: | ||
commit: | ||
author: | ||
email: [email protected] | ||
name: fluxcdbot | ||
messageTemplate: | | ||
{{` Automated image update | ||
[ci skip] | ||
Automation name: {{ .AutomationObject }} | ||
Files: | ||
{{ range $filename, $_ := .Updated.Files -}} | ||
- {{ $filename }} | ||
{{ end -}} | ||
Objects: | ||
{{ range $resource, $_ := .Updated.Objects -}} | ||
- {{ $resource.Kind }} {{ $resource.Name }} | ||
{{ end -}} | ||
Images: | ||
{{ range .Updated.Images -}} | ||
- {{.}} | ||
{{ end -}}`}} | ||
push: | ||
branch: main | ||
interval: 1m0s | ||
update: | ||
strategy: Setters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Default values for svai. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
|
||
autoscaling: | ||
enabled: true | ||
minReplicas: 2 | ||
maxReplicas: 10 | ||
targetCPUUtilizationPercentage: 80 | ||
targetMemoryUtilizationPercentage: 80 | ||
|
||
env: dev #prod/dev | ||
domain: mydomain.no | ||
#selectorLabes: | ||
# app: svai | ||
image: | ||
repository: registry.azurecr.io/registry-name | ||
tag: b3543c41-1682426341 | ||
automated: true | ||
containerPort: 8080 | ||
|
||
nameOverride: "sandbox" | ||
|
||
environment: | ||
variables: | ||
- name: ASPNETCORE_ENVIRONMENT | ||
value: produksjon | ||
secrets: | ||
- nameInKeyVault: my-secret | ||
nameOfEnvVar: My__Secret | ||
vault: my-keyvault | ||
valuesFrom: | ||
- nameOfEnvVar: HOST_IP | ||
fieldPath: status.hostIP | ||
|
||
ingress: | ||
acmebot: true | ||
enabled: true | ||
className: "" | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
kubernetes.io/tls-acme: "true" | ||
external-dns.alpha.kubernetes.io/target: "10.0.0.0" | ||
paths: | ||
- path: / | ||
pathType: ImplementationSpecific | ||
|
||
#Resources: for memory you can set limit=request, the value can be 25% above the average consumption | ||
#of the app, remember that if the app execeeds the limit it will be killed and restarted | ||
#for cpu you can set a request but no limit. | ||
resources: | ||
requests: | ||
memory: 128Mi | ||
cpu: 100m | ||
limits: | ||
memory: 128Mi | ||
containers: | ||
startupProbe: | ||
enabled: false | ||
readinessProbe: | ||
enabled: false | ||
livenessProbe: | ||
enabled: false | ||
|
||
|
||
serviceAccount: | ||
# Specifies whether a service account should be created | ||
create: false | ||
# Annotations to add to the service account | ||
annotations: {} | ||
# The name of the service account to use. | ||
# If not set and create is true, a name is generated using the fullname template | ||
name: "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters