Skip to content

Commit

Permalink
Fixes helm#1341 -- update Jenkins chart documentation (helm#10290)
Browse files Browse the repository at this point in the history
* Fixes helm#1341 -- update Jenkins chart documentation

Update `values.yml` documentation on using 'LoadBalancer' type of
Service in a secure way by adding required annotations. This creates
an internal LoadBalancer with locked down rules on allowed CIDR ranges
via annotations.

Signed-off-by: Dan Alvizu <dalvizu@pingidentity.com>

* bump version, per pull request comments

Signed-off-by: Dan Alvizu <dalvizu@pingidentity.com>

* fix whitespace lint errors

Signed-off-by: Dan Alvizu <dalvizu@pingidentity.com>
  • Loading branch information
dalvizu authored and k8s-ci-robot committed Jan 28, 2019
1 parent fa8d61a commit 939ba03
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/jenkins/Chart.yaml
@@ -1,6 +1,6 @@
name: jenkins
home: https://jenkins.io/
version: 0.28.9
version: 0.28.10
appVersion: lts
description: Open source continuous integration server. It supports multiple SCM tools
including CVS, Subversion and Git. It can execute Apache Ant and Apache Maven-based
Expand Down
15 changes: 14 additions & 1 deletion charts/jenkins/values.yaml
Expand Up @@ -85,9 +85,22 @@ Master:
ProxyCompatability: true
CLI: false
# Kubernetes service type for the JNLP slave service
# SETTING THIS TO "LoadBalancer" IS A HUGE SECURITY RISK: https://github.com/kubernetes/charts/issues/1341
# SlaveListenerServiceType is the Kubernetes Service type for the JNLP slave service,
# either 'LoadBalancer', 'NodePort', or 'ClusterIP'
# Note if you set this to 'LoadBalancer', you *must* define annotations to secure it. By default
# this will be an external load balancer and allowing inbound 0.0.0.0/0, a HUGE
# security risk: https://github.com/kubernetes/charts/issues/1341
SlaveListenerServiceType: ClusterIP
SlaveListenerServiceAnnotations: {}

# Example of 'LoadBalancer' type of slave listener with annotations securing it
# SlaveListenerServiceType: LoadBalancer
# SlaveListenerServiceAnnotations:
# service.beta.kubernetes.io/aws-load-balancer-internal: "True"
# service.beta.kubernetes.io/load-balancer-source-ranges: "172.0.0.0/8, 10.0.0.0/8"

# LoadBalancerSourcesRange is a list of allowed CIDR values, which are combined with ServicePort to
# set allowed inbound rules on the security group assigned to the master load balancer
LoadBalancerSourceRanges:
- 0.0.0.0/0
# Optionally assign a known public LB IP
Expand Down

0 comments on commit 939ba03

Please sign in to comment.