Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(publick8s) install geoipdata chart #5564

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions clusters/publick8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,11 @@ releases:
- "../config/stats.jenkins.io.yaml"
secrets:
- "../secrets/config/stats.jenkins.io/secrets.yaml"
- name: geoipdata
namespace: geoip-data
chart: jenkins-infra/geoipupdates
version: 0.0.1
values:
- ../config/geoipdata.yaml
secrets:
- ../secrets/config/geoipdata/secrets.yaml
32 changes: 32 additions & 0 deletions config/geoipdata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
geoipupdate:
update_frequency: 72
podSecurityContext:
runAsUser: 65534 # User 'nobody'
runAsGroup: 65534 # Group 'nogroup'
runAsNonRoot: true
containerSecurityContext:
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL

resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 50m
memory: 64Mi

nodeSelector:
kubernetes.io/arch: arm64
tolerations:
- key: "kubernetes.io/arch"
operator: "Equal"
value: "arm64"
effect: "NoSchedule"

dataVolume:
persistentVolumeClaim:
claimName: geoip-data
4 changes: 2 additions & 2 deletions config/public-nginx-ingress__common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ controller:
hsts-include-subdomains: "true"
# Strict-Transport-Security "max-age" directive recommended value is 2592000 (30 days).
hsts-max-age: "2592000"
use-gzip: true # gzip types are the defaults: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#gzip-types
enable-brotli: true # see default settings in https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#enable-brotli
use-gzip: true # gzip types are the defaults: https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#gzip-types
enable-brotli: true # see default settings in https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/configmap/#enable-brotli
replicaCount: 1
ingressClassResource:
enabled: true
Expand Down