Skip to content

Commit

Permalink
[envoy] Support Azure Marketplace (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
kota2and3kan authored Oct 1, 2024
1 parent 52e3a65 commit 470df83
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/envoy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Current chart version is `3.0.0-SNAPSHOT`
| affinity | object | `{}` | the affinity/anti-affinity feature, greatly expands the types of constraints you can express |
| envoyConfiguration.adminAccessLogPath | string | `"/dev/stdout"` | admin log path |
| envoyConfiguration.serviceListeners | string | `"scalar-service:50051,scalar-privileged:50052"` | list of service name and port |
| global.platform | string | `""` | Specify the platform that you use. This configuration is for internal use. |
| grafanaDashboard.enabled | bool | `false` | enable grafana dashboard |
| grafanaDashboard.namespace | string | `"monitoring"` | which namespace grafana dashboard is located. by default monitoring |
| image.pullPolicy | string | `"IfNotPresent"` | Specify a imagePullPolicy |
Expand Down
4 changes: 4 additions & 0 deletions charts/envoy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
{{- if eq .Values.global.platform "azure" }}
image: "{{ .Values.global.azure.images.envoy.registry }}/{{ .Values.global.azure.images.envoy.image }}:{{ .Values.global.azure.images.envoy.tag }}"
{{- else }}
image: "{{ .Values.image.repository }}:{{ .Values.image.version }}"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 50051
Expand Down
8 changes: 8 additions & 0 deletions charts/envoy/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
}
}
},
"global": {
"type": "object",
"properties": {
"platform": {
"type": "string"
}
}
},
"grafanaDashboard": {
"type": "object",
"properties": {
Expand Down
4 changes: 4 additions & 0 deletions charts/envoy/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
global:
# -- Specify the platform that you use. This configuration is for internal use.
platform: ""

# replicaCount -- number of replicas to deploy
replicaCount: 3

Expand Down

0 comments on commit 470df83

Please sign in to comment.