mirror of https://github.com/tailscale/tailscale/
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
162 lines
3.4 KiB
YAML
162 lines
3.4 KiB
YAML
2 years ago
|
# Copyright (c) Tailscale Inc & AUTHORS
|
||
|
# SPDX-License-Identifier: BSD-3-Clause
|
||
2 years ago
|
|
||
2 years ago
|
apiVersion: v1
|
||
|
kind: Namespace
|
||
|
metadata:
|
||
|
name: tailscale
|
||
|
---
|
||
2 years ago
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: proxies
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: Role
|
||
|
metadata:
|
||
|
name: proxies
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
rules:
|
||
2 years ago
|
- apiGroups: [""]
|
||
2 years ago
|
resources: ["secrets"]
|
||
|
verbs: ["*"]
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: RoleBinding
|
||
|
metadata:
|
||
|
name: proxies
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: proxies
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
roleRef:
|
||
|
kind: Role
|
||
|
name: proxies
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: operator
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: tailscale-operator
|
||
|
rules:
|
||
|
- apiGroups: [""]
|
||
1 year ago
|
resources: ["events", "services", "services/status"]
|
||
2 years ago
|
verbs: ["*"]
|
||
1 year ago
|
- apiGroups: ["networking.k8s.io"]
|
||
|
resources: ["ingresses", "ingresses/status"]
|
||
|
verbs: ["*"]
|
||
2 years ago
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: tailscale-operator
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: operator
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
roleRef:
|
||
|
kind: ClusterRole
|
||
|
name: tailscale-operator
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: Role
|
||
|
metadata:
|
||
|
name: operator
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
rules:
|
||
2 years ago
|
- apiGroups: [""]
|
||
2 years ago
|
resources: ["secrets"]
|
||
|
verbs: ["*"]
|
||
|
- apiGroups: ["apps"]
|
||
|
resources: ["statefulsets"]
|
||
|
verbs: ["*"]
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: RoleBinding
|
||
|
metadata:
|
||
|
name: operator
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: operator
|
||
2 years ago
|
namespace: tailscale
|
||
2 years ago
|
roleRef:
|
||
|
kind: Role
|
||
|
name: operator
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
---
|
||
2 years ago
|
apiVersion: v1
|
||
|
kind: Secret
|
||
|
metadata:
|
||
2 years ago
|
name: operator-oauth
|
||
|
namespace: tailscale
|
||
2 years ago
|
stringData:
|
||
|
client_id: # SET CLIENT ID HERE
|
||
|
client_secret: # SET CLIENT SECRET HERE
|
||
|
---
|
||
2 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
2 years ago
|
name: operator
|
||
|
namespace: tailscale
|
||
2 years ago
|
spec:
|
||
|
replicas: 1
|
||
|
strategy:
|
||
|
type: Recreate
|
||
|
selector:
|
||
|
matchLabels:
|
||
2 years ago
|
app: operator
|
||
2 years ago
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
2 years ago
|
app: operator
|
||
2 years ago
|
spec:
|
||
|
serviceAccountName: operator
|
||
2 years ago
|
volumes:
|
||
|
- name: oauth
|
||
|
secret:
|
||
2 years ago
|
secretName: operator-oauth
|
||
2 years ago
|
containers:
|
||
2 years ago
|
- name: operator
|
||
2 years ago
|
image: tailscale/k8s-operator:unstable
|
||
2 years ago
|
resources:
|
||
|
requests:
|
||
|
cpu: 500m
|
||
|
memory: 100Mi
|
||
|
env:
|
||
|
- name: OPERATOR_HOSTNAME
|
||
|
value: tailscale-operator
|
||
|
- name: OPERATOR_SECRET
|
||
2 years ago
|
value: operator
|
||
|
- name: OPERATOR_LOGGING
|
||
|
value: info
|
||
|
- name: OPERATOR_NAMESPACE
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: metadata.namespace
|
||
2 years ago
|
- name: CLIENT_ID_FILE
|
||
|
value: /oauth/client_id
|
||
|
- name: CLIENT_SECRET_FILE
|
||
|
value: /oauth/client_secret
|
||
2 years ago
|
- name: PROXY_IMAGE
|
||
2 years ago
|
value: tailscale/tailscale:unstable
|
||
2 years ago
|
- name: PROXY_TAGS
|
||
|
value: tag:k8s
|
||
1 year ago
|
- name: APISERVER_PROXY
|
||
2 years ago
|
value: "false"
|
||
1 year ago
|
- name: PROXY_FIREWALL_MODE
|
||
|
value: auto
|
||
2 years ago
|
volumeMounts:
|
||
|
- name: oauth
|
||
|
mountPath: /oauth
|
||
2 years ago
|
readOnly: true
|