Skip to content

Commit

Permalink
Expose TCP port (#40)
Browse files Browse the repository at this point in the history
* Expose TCP port

* Revert service port name. Bump chart version. Upd readme
  • Loading branch information
kostyaplis authored Jun 14, 2021
1 parent 1c9cce0 commit 0267dce
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/aws-xray/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ maintainers:
name: aws-xray
sources:
- https://github.com/aws/aws-xray-daemon
version: 3.1.1
version: 3.2.0
2 changes: 1 addition & 1 deletion charts/aws-xray/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The following table lists the configurable parameters of the AWS X-Ray chart and
| `xray.region` | AWS region you deploy AWS X-Ray to | `` |
| `xray.loglevel` | AWS X-Ray daemon log level | `prod` |
| `xray.roleArn` | AWS IAM role to assume | `` |
| `service.port` | Service UDP port | `2000` |
| `service.port` | Service UDP and TCP port | `2000` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | List of node taints to tolerate | `[]` |
| `affinity` | Map of node/pod affinities | `{}` |
Expand Down
1 change: 1 addition & 0 deletions charts/aws-xray/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ data:
# Change the address and port on which the daemon listens for UDP packets containing segment documents.
# Make sure we listen on all IP's by default for the k8s setup
UDPAddress: "0.0.0.0:2000"
TCPAddress: "0.0.0.0:2000"
Logging:
LogRotation: true
# Change the log level, from most verbose to least: dev, debug, info, warn, error, prod (default).
Expand Down
4 changes: 4 additions & 0 deletions charts/aws-xray/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ spec:
containerPort: 2000
hostPort: 2000
protocol: UDP
- name: xray-tcp
containerPort: 2000
hostPort: 2000
protocol: TCP
volumeMounts:
- name: config-volume
mountPath: /aws/xray
Expand Down
3 changes: 3 additions & 0 deletions charts/aws-xray/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
- port: {{ .Values.service.port }}
protocol: UDP
name: incoming
- port: {{ .Values.service.port }}
protocol: TCP
name: xray-tcp
selector:
app.kubernetes.io/name: {{ include "aws-xray.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}

0 comments on commit 0267dce

Please sign in to comment.