generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
868 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ | |
/docs/book | ||
|
||
/vendor | ||
/teleport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resources: | ||
- ../default | ||
patchesStrategicMerge: | ||
- ./manager.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: controller-manager | ||
namespace: system | ||
spec: | ||
template: | ||
spec: | ||
securityContext: null | ||
containers: | ||
- command: | ||
- /login-protector | ||
args: null | ||
name: manager | ||
securityContext: null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Teleport Support | ||
|
||
## Development | ||
|
||
```bash | ||
# Install necessary tools. | ||
$ make setup | ||
|
||
# Setup Teleport CLI | ||
$ make setup-teleport | ||
|
||
# Start a test Kubernetes cluster. | ||
$ make start-dev | ||
``` | ||
|
||
```bash | ||
# Deploy Teleport | ||
$ make deploy-teleport | ||
``` | ||
|
||
You can see the following output: | ||
|
||
```console | ||
User "api-access" has been created but requires a password. Share this URL with the user to complete user setup, link is valid for 1h: | ||
https://localhost:3080/web/invite/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
|
||
NOTE: Make sure localhost:3080 points at a Teleport proxy which users can access. | ||
``` | ||
|
||
Open the URL in your browser and set the password for the api-access user. | ||
You should set up MFA(Multi-Factor Authentication). | ||
|
||
```bash | ||
$ ./teleport/tsh login --proxy=localhost:3080 --user=api-access --insecure --ttl=5256000 | ||
$ ./teleport/tctl --auth-server=localhost:3025 auth sign --ttl=87500h --user=api-access --out=./test/teleport/api/api-access.pem | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
kind: role | ||
metadata: | ||
name: api-access | ||
spec: | ||
allow: | ||
rules: | ||
- resources: | ||
- session_tracker | ||
verbs: | ||
- list | ||
- read | ||
deny: {} | ||
options: | ||
max_session_ttl: 87600h0m0s | ||
version: v7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- teleport-cluster.yaml | ||
patches: | ||
- path: service-patch.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: teleport | ||
namespace: teleport | ||
spec: | ||
type: NodePort | ||
ports: | ||
- name: tls | ||
port: 443 | ||
targetPort: 3080 | ||
nodePort: 30080 | ||
protocol: TCP | ||
- name: sshproxy | ||
port: 3023 | ||
targetPort: 3023 | ||
nodePort: 30023 | ||
protocol: TCP | ||
- name: k8s | ||
port: 3026 | ||
targetPort: 3026 | ||
nodePort: 30026 | ||
protocol: TCP | ||
- name: sshtun | ||
port: 3024 | ||
targetPort: 3024 | ||
nodePort: 30024 | ||
protocol: TCP | ||
- name: mysql | ||
port: 3036 | ||
targetPort: 3036 | ||
nodePort: 30036 | ||
protocol: TCP | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: teleport-auth | ||
namespace: teleport | ||
spec: | ||
type: NodePort | ||
ports: | ||
- name: auth | ||
port: 3025 | ||
targetPort: 3025 | ||
nodePort: 31025 | ||
protocol: TCP | ||
- name: kube | ||
port: 3026 | ||
targetPort: 3026 | ||
nodePort: 31026 | ||
protocol: TCP |
Oops, something went wrong.