2023-01-27 21:37:20 +00:00
|
|
|
# Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2021-10-12 22:24:07 +01:00
|
|
|
|
2022-07-01 04:09:09 +01:00
|
|
|
TS_ROUTES ?= ""
|
2021-10-12 22:24:07 +01:00
|
|
|
SA_NAME ?= tailscale
|
2022-07-01 04:05:49 +01:00
|
|
|
TS_KUBE_SECRET ?= tailscale
|
2021-10-12 22:24:07 +01:00
|
|
|
|
|
|
|
rbac:
|
2023-07-01 02:05:33 +01:00
|
|
|
@sed -e "s;{{TS_KUBE_SECRET}};$(TS_KUBE_SECRET);g" role.yaml
|
|
|
|
@echo "---"
|
|
|
|
@sed -e "s;{{SA_NAME}};$(SA_NAME);g" rolebinding.yaml
|
|
|
|
@echo "---"
|
|
|
|
@sed -e "s;{{SA_NAME}};$(SA_NAME);g" sa.yaml
|
2021-10-12 22:24:07 +01:00
|
|
|
|
|
|
|
sidecar:
|
2023-07-01 02:05:33 +01:00
|
|
|
@sed -e "s;{{TS_KUBE_SECRET}};$(TS_KUBE_SECRET);g" sidecar.yaml | sed -e "s;{{SA_NAME}};$(SA_NAME);g"
|
2021-10-12 22:24:07 +01:00
|
|
|
|
|
|
|
userspace-sidecar:
|
2023-07-01 02:05:33 +01:00
|
|
|
@sed -e "s;{{TS_KUBE_SECRET}};$(TS_KUBE_SECRET);g" userspace-sidecar.yaml | sed -e "s;{{SA_NAME}};$(SA_NAME);g"
|
2021-10-12 22:24:07 +01:00
|
|
|
|
|
|
|
proxy:
|
2023-07-01 02:05:33 +01:00
|
|
|
@sed -e "s;{{TS_KUBE_SECRET}};$(TS_KUBE_SECRET);g" proxy.yaml | sed -e "s;{{SA_NAME}};$(SA_NAME);g" | sed -e "s;{{TS_DEST_IP}};$(TS_DEST_IP);g"
|
2021-10-16 23:17:36 +01:00
|
|
|
|
|
|
|
subnet-router:
|
2023-07-01 02:05:33 +01:00
|
|
|
@sed -e "s;{{TS_KUBE_SECRET}};$(TS_KUBE_SECRET);g" subnet.yaml | sed -e "s;{{SA_NAME}};$(SA_NAME);g" | sed -e "s;{{TS_ROUTES}};$(TS_ROUTES);g"
|