Skip to content

Commit

Permalink
Also template and release a kubernetes manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Schöchlin committed Jan 5, 2025
1 parent 7ffa401 commit 4985a4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: ncipollo/release-action@v1
if: ${{ inputs.publish_steps }}
with:
artifacts: "zabbix-agent-extensions*.deb,zabbix-agent-extensions-*.rpm"
artifacts: "zabbix-agent-extensions*.deb,zabbix-agent-extensions-*.rpm,zabbix-agent-daemonset-kubernetes-release.yaml"
- name: Login to Docker Hub
if: ${{ inputs.publish_steps }}
uses: docker/login-action@v3
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.deb
*.rpm
*.idea
zabbix-agent-daemonset-kubernetes-release.yaml
2 changes: 2 additions & 0 deletions create_docker
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ buildDocker(){
--build-arg BUILD_DATE="$(date "+%Y-%m-%d")" \
--build-arg BUILD_VERSION="$VERSION" \
-t ${IMAGE_NAME}:${VERSION} -f Dockerfile .
sed "~s,${IMAGE_REPO}/${IMAGE_NAME}:latest,${IMAGE_REPO}/${IMAGE_NAME}:${VERSION}," zabbix-agent-daemonset-kubernetes.yaml > \
zabbix-agent-daemonset-kubernetes-release.yaml
set +xe
}

Expand Down
8 changes: 4 additions & 4 deletions zabbix-agent-daemonset-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
labels:
name: zabbix-agent
spec:
# this toleration is to have the daemonset runnable on master nodes
# this toleration is to have the daemonset runnable also on master nodes
# tolerations:
# - key: node-role.kubernetes.io/master
# effect: NoSchedule
Expand All @@ -43,7 +43,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: ZBX_ACTIVESERVERS
- name: ZBX_SERVER_HOST
value: "zabbix-proxy"
- name: ZBX_PASSIVESERVERS
value: "127.0.0.1,zabbix-proxy"
Expand Down Expand Up @@ -77,5 +77,5 @@ metadata:
name: zabbix-agent-extensions-include
namespace: "infra-zabbix-agent"
data:
"zabbix-agent-extensions-include.conf": |
Include=/usr/share/zabbix-agent-extensions/include.d/*.conf
"zabbix-agent-extensions-include-extra.conf": |
# Extra

0 comments on commit 4985a4d

Please sign in to comment.