Skip to content

Commit

Permalink
[Navi] Добавление параметра $enableServiceLinks: front, castle (#565)
Browse files Browse the repository at this point in the history
* [Navi] Добавление параметра $enableServiceLinks

* [Navi] Добавление параметра $enableServiceLinks
  • Loading branch information
mprudnikov3 authored Dec 27, 2024
1 parent 4f0a1f4 commit 20fb89c
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 27 deletions.
27 changes: 14 additions & 13 deletions charts/navi-castle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,20 @@ See the [documentation](https://docs.2gis.com/en/on-premise/navigation) to learn

### Common settings

| Name | Description | Value |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ----- |
| `replicaCount` | A replica count for the pod. | `1` |
| `imagePullSecrets` | Kubernetes image pull secrets. | `[]` |
| `nameOverride` | Base name to use in all the Kubernetes entities deployed by this chart. | `""` |
| `fullnameOverride` | Base fullname to use in all the Kubernetes entities deployed by this chart. | `""` |
| `podAnnotations` | Kubernetes [pod annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/). | `{}` |
| `podSecurityContext` | Kubernetes [pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `{}` |
| `securityContext` | Kubernetes [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `{}` |
| `nodeSelector` | Kubernetes [node selectors](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector). | `{}` |
| `tolerations` | Kubernetes [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) settings. | `[]` |
| `affinity` | Kubernetes pod [affinity settings](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity). | `{}` |
| `terminationGracePeriodSeconds` | Maximum time allowed for graceful shutdown. | `60` |
| Name | Description | Value |
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| `enableServiceLinks` | Services injection into containers environment [Accessing the Service](https://kubernetes.io/docs/tutorials/services/connect-applications-service/#accessing-the-service) | `true` |
| `replicaCount` | A replica count for the pod. | `1` |
| `imagePullSecrets` | Kubernetes image pull secrets. | `[]` |
| `nameOverride` | Base name to use in all the Kubernetes entities deployed by this chart. | `""` |
| `fullnameOverride` | Base fullname to use in all the Kubernetes entities deployed by this chart. | `""` |
| `podAnnotations` | Kubernetes [pod annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/). | `{}` |
| `podSecurityContext` | Kubernetes [pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `{}` |
| `securityContext` | Kubernetes [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `{}` |
| `nodeSelector` | Kubernetes [node selectors](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector). | `{}` |
| `tolerations` | Kubernetes [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) settings. | `[]` |
| `affinity` | Kubernetes pod [affinity settings](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity). | `{}` |
| `terminationGracePeriodSeconds` | Maximum time allowed for graceful shutdown. | `60` |

### Service account settings

Expand Down
1 change: 1 addition & 0 deletions charts/navi-castle/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ spec:
- name: {{ include "castle.fullname" . }}-data
emptyDir: {}
{{- end }}
enableServiceLinks: {{ .Values.enableServiceLinks }}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
containers:
- name: castle-nginx
Expand Down
2 changes: 2 additions & 0 deletions charts/navi-castle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dgctlStorage:

# @section Common settings

# @param enableServiceLinks Services injection into containers environment [Accessing the Service](https://kubernetes.io/docs/tutorials/services/connect-applications-service/#accessing-the-service)
# @param replicaCount A replica count for the pod.
# @param imagePullSecrets Kubernetes image pull secrets.
# @param nameOverride Base name to use in all the Kubernetes entities deployed by this chart.
Expand All @@ -48,6 +49,7 @@ dgctlStorage:
# @param affinity Kubernetes pod [affinity settings](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity).
# @param terminationGracePeriodSeconds Maximum time allowed for graceful shutdown.

enableServiceLinks: true
replicaCount: 1
imagePullSecrets: []
nameOverride: ''
Expand Down
27 changes: 14 additions & 13 deletions charts/navi-front/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,20 @@ See the [documentation](https://docs.2gis.com/en/on-premise/navigation) to learn

### Common settings

| Name | Description | Value |
| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
| `replicaCount` | A replica count for the pod. | `1` |
| `revisionHistoryLimit` | Revision history limit (used for [rolling back](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) a deployment). | `3` |
| `imagePullSecrets` | Kubernetes image pull secrets. | `[]` |
| `nameOverride` | Base name to use in all the Kubernetes entities deployed by this chart. | `""` |
| `fullnameOverride` | Base fullname to use in all the Kubernetes entities deployed by this chart. | `""` |
| `podAnnotations` | Kubernetes [pod annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/). | `{}` |
| `podSecurityContext` | Kubernetes [pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `{}` |
| `securityContext` | Kubernetes [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `{}` |
| `nodeSelector` | Kubernetes [node selectors](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector). | `{}` |
| `tolerations` | Kubernetes [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) settings. | `[]` |
| `affinity` | Kubernetes pod [affinity settings](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity). | `{}` |
| Name | Description | Value |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ |
| `enableServiceLinks` | Services injection into containers environment [Accessing the Service](https://kubernetes.io/docs/tutorials/services/connect-applications-service/#accessing-the-service) | `true` |
| `replicaCount` | A replica count for the pod. | `1` |
| `revisionHistoryLimit` | Revision history limit (used for [rolling back](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) a deployment). | `3` |
| `imagePullSecrets` | Kubernetes image pull secrets. | `[]` |
| `nameOverride` | Base name to use in all the Kubernetes entities deployed by this chart. | `""` |
| `fullnameOverride` | Base fullname to use in all the Kubernetes entities deployed by this chart. | `""` |
| `podAnnotations` | Kubernetes [pod annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/). | `{}` |
| `podSecurityContext` | Kubernetes [pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `{}` |
| `securityContext` | Kubernetes [security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/). | `{}` |
| `nodeSelector` | Kubernetes [node selectors](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector). | `{}` |
| `tolerations` | Kubernetes [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) settings. | `[]` |
| `affinity` | Kubernetes pod [affinity settings](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity). | `{}` |

### Deployment settings

Expand Down
1 change: 1 addition & 0 deletions charts/navi-front/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
labels:
{{- include "front.selectorLabels" . | nindent 8 }}
spec:
enableServiceLinks: {{ .Values.enableServiceLinks }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/navi-front/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dgctlDockerRegistry: ''

# @section Common settings

# @param enableServiceLinks Services injection into containers environment [Accessing the Service](https://kubernetes.io/docs/tutorials/services/connect-applications-service/#accessing-the-service)
# @param replicaCount A replica count for the pod.
# @param revisionHistoryLimit Revision history limit (used for [rolling back](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) a deployment).
# @param imagePullSecrets Kubernetes image pull secrets.
Expand All @@ -19,6 +20,7 @@ dgctlDockerRegistry: ''
# @param tolerations Kubernetes [tolerations](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) settings.
# @param affinity Kubernetes pod [affinity settings](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity).

enableServiceLinks: true
replicaCount: 1
revisionHistoryLimit: 3
imagePullSecrets: []
Expand Down
2 changes: 1 addition & 1 deletion charts/traffic-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ proxy:
errorLog:
level: error

accessLog: off
accessLog: 'off'
# accessLog: '/dev/stdout main'

keepaliveTimeout: 65
Expand Down

0 comments on commit 20fb89c

Please sign in to comment.