fix(mycloud-git-small): networkpolicy for k8sAPI on woodpecker

This commit is contained in:
WrenIX 2025-02-02 19:53:19 +01:00
parent 312e734588
commit 389c5d26a2
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
3 changed files with 9 additions and 3 deletions

View file

@ -101,7 +101,9 @@ myCloud component to setup forgjo and codeberg
| commons.networkpolicies.from.metrics | list | `[]` | |
| commons.networkpolicies.to.database | list | `[]` | |
| commons.networkpolicies.to.dns | list | `[]` | |
| commons.networkpolicies.to.k8sAPI | list | `[]` | |
| commons.networkpolicies.to.k8sAPI.ports[0].port | int | `6443` | |
| commons.networkpolicies.to.k8sAPI.ports[0].protocol | string | `"TCP"` | |
| commons.networkpolicies.to.k8sAPI.to | list | `[]` | |
| databases.forgejo.host | string | `"mycloud-services-postgresql"` | default is from mysql-services |
| databases.forgejo.name | string | `"git-forgejo"` | |
| databases.forgejo.password | string | `nil` | generated by .Values.commons.masterPassword (equal to mycloud-services) |

View file

@ -42,7 +42,7 @@ spec:
dns:
{{- toYaml .Values.commons.networkpolicies.to.dns | nindent 12 }}
apiserver:
{{- first .Values.commons.networkpolicies.to.k8sAPI | toYaml | nindent 12 }}
{{- toYaml .Values.commons.networkpolicies.to.k8sAPI | nindent 12 }}
server:
to:
- podSelector:

View file

@ -93,7 +93,11 @@ commons:
metrics: []
to:
dns: []
k8sAPI: []
k8sAPI:
ports:
- port: 6443
protocol: TCP
to: []
database: []
prometheus: