-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added network policy;Updated to Zabbix 5.2;Zabbix Server now stateful…
…set (#12) * Added network policy;Updated to Zabbix 5.2;Zabbix Server now statefulset
- Loading branch information
Showing
21 changed files
with
312 additions
and
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ name: MasterRun | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- master | ||
- main | ||
|
||
workflow_dispatch: | ||
|
||
|
@@ -15,35 +15,35 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout dj-wasabi-release repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: dj-wasabi/dj-wasabi-release | ||
path: dj-wasabi-release | ||
|
||
- name: Checkout current repo | ||
uses: actions/checkout@v2 | ||
with: | ||
path: main | ||
|
||
- name: Commit Changelog file | ||
run: | | ||
# We are cloned in the 'main' directory and the dj-wasabi-release | ||
# repository is the 'dj-wasabi-release' next to 'main' | ||
cd main | ||
# Generate CHANGELOG.md file | ||
../dj-wasabi-release/release.sh -d | ||
# Let commit the changes if there are any? (Well there should be!) | ||
if [[ $(git status | grep -c 'CHANGELOG.md' || true) -gt 0 ]] | ||
then echo "Committing file" | ||
git config --global user.name 'Werner Dijkerman [GH bot]' | ||
git config --global user.email '[email protected]' | ||
git add CHANGELOG.md | ||
git commit -m "Updated CHANGELOG.md on \"$(date "+%Y-%m-%d %H:%M:%S")\"" CHANGELOG.md | ||
git push | ||
fi | ||
env: | ||
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout dj-wasabi-release repo | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: dj-wasabi/dj-wasabi-release | ||
path: dj-wasabi-release | ||
|
||
- name: Checkout current repo | ||
uses: actions/checkout@v2 | ||
with: | ||
path: main | ||
|
||
- name: Commit Changelog file | ||
run: | | ||
# We are cloned in the 'main' directory and the dj-wasabi-release | ||
# repository is the 'dj-wasabi-release' next to 'main' | ||
cd main | ||
# Generate CHANGELOG.md file | ||
../dj-wasabi-release/release.sh -d | ||
# Let commit the changes if there are any? (Well there should be!) | ||
if [[ $(git status | grep -c 'CHANGELOG.md' || true) -gt 0 ]] | ||
then echo "Committing file" | ||
git config --global user.name 'Werner Dijkerman [GH bot]' | ||
git config --global user.email '[email protected]' | ||
git add CHANGELOG.md | ||
git commit -m "Updated CHANGELOG.md on \"$(date "+%Y-%m-%d %H:%M:%S")\"" CHANGELOG.md | ||
git push | ||
fi | ||
env: | ||
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/dj-wasabi/pre-commit-hooks | ||
rev: d84bb1806ddb7572f38e80a8778f6d13540554d9 | ||
rev: master | ||
hooks: | ||
- id: helm-lint | ||
- id: helm-unittest | ||
|
||
- id: helm-lint | ||
- id: helm-unittest | ||
- id: markdown-toc |
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,33 @@ | ||
{{- if and .Values.zabbix.networkPolicy.enabled -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: zabbix-agent | ||
namespace: "{{ .Values.zabbix.namespace }}" | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
app: zabbix-agent | ||
ingress: | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
app: zabbix-server | ||
ports: | ||
- port: 10050 | ||
egress: | ||
- to: | ||
- podSelector: | ||
matchLabels: | ||
app: zabbix-server | ||
ports: | ||
- port: 10051 | ||
- to: | ||
- namespaceSelector: {} | ||
podSelector: | ||
matchLabels: | ||
k8s-app: kube-dns | ||
ports: | ||
- port: 53 | ||
protocol: UDP | ||
{{- end }} |
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,46 @@ | ||
{{- if and .Values.zabbix.networkPolicy.enabled -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: zabbix-server | ||
namespace: "{{ .Values.zabbix.namespace }}" | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
app: zabbix-server | ||
ingress: | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
app: zabbix-agent | ||
ports: | ||
- port: 10051 | ||
- from: | ||
- podSelector: | ||
matchLabels: | ||
app: zabbix-web | ||
ports: | ||
- port: 10051 | ||
egress: | ||
- ports: | ||
{{- if eq .Values.zabbix.database.type "mysql" }} | ||
- port: 3306 | ||
{{- end }} | ||
{{- if eq .Values.zabbix.database.type "pgsql" }} | ||
- port: 5432 | ||
{{- end }} | ||
- to: | ||
- podSelector: | ||
matchLabels: | ||
app: zabbix-agent | ||
ports: | ||
- port: 10050 | ||
- to: | ||
- namespaceSelector: {} | ||
podSelector: | ||
matchLabels: | ||
k8s-app: kube-dns | ||
ports: | ||
- port: 53 | ||
protocol: UDP | ||
{{- end }} |
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,15 @@ | ||
{{- if and .Values.zabbix.networkPolicy.enabled -}} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: NetworkPolicy | ||
metadata: | ||
name: zabbix-web | ||
namespace: "{{ .Values.zabbix.namespace }}" | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
app: zabbix-web | ||
ingress: | ||
- {} | ||
egress: | ||
- {} | ||
{{- end }} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.