Skip to content

Commit

Permalink
Tailscale on persistent nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmcshane committed Mar 13, 2024
1 parent cee925d commit fd4a53c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
8 changes: 2 additions & 6 deletions addons/tailscale-relay/form.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,13 @@ tabs:
value: |
.items[] | {
name: .metadata.labels["app.kubernetes.io/instance"],
release: .metadata.labels["release"],
type: .metadata.labels["app.kubernetes.io/name"],
app: .metadata.labels["app"],
managedBy: .metadata.labels["app.kubernetes.io/managed-by"],
tailscale: .metadata.labels["porter.run/tailscale-svc"],
namespace: .metadata.namespace,
clusterIP: .spec.clusterIP,
} | select(.clusterIP!="None" and .managedBy=="Helm") | {
} | select(.clusterIP!="None" and .tailscale=="true") | {
name: .name,
release: .release,
type: .type,
app: .app,
namespace: .namespace,
clusterIP: .clusterIP,
}
Expand Down
16 changes: 14 additions & 2 deletions addons/tailscale-relay/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,24 @@ nodeSelector: {}
## Tolerations for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
##
tolerations: []
tolerations:
- effect: NoSchedule
key: porter.run/workload-kind
operator: Equal
value: monitoring

## Affinity for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: porter.run/workload-kind
operator: In
values:
- monitoring

## Set the security context of the pods
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context
Expand Down

0 comments on commit fd4a53c

Please sign in to comment.