-
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.
Merge pull request #1 from nevivurn/master
feat: add sommelier docs
- Loading branch information
Showing
7 changed files
with
102 additions
and
35 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Summary | ||
|
||
[Waiter](waiter.md) | ||
[Sommelier](sommelier.md) |
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,11 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIBiTCCAS+gAwIBAgIQWUYhPpnmpCsGC65ZcM+jGjAKBggqhkjOPQQDAjAVMRMw | ||
EQYDVQQKEwprdWJlcm5ldGVzMB4XDTI0MDMwOTA5Mzg1M1oXDTM0MDMwNzA5Mzg1 | ||
M1owFTETMBEGA1UEChMKa3ViZXJuZXRlczBZMBMGByqGSM49AgEGCCqGSM49AwEH | ||
A0IABAllXAFhnC06qlSsg5lcYLQsJB3C2zjfp/yaOaYbR5G/TsEcfVTwzdWVuODC | ||
PiNGdCd+6w0P2hIPhudtuEXjJbejYTBfMA4GA1UdDwEB/wQEAwIChDAdBgNVHSUE | ||
FjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E | ||
FgQU7BCl5VyKLG0hTJnxj6wK87aG2TEwCgYIKoZIzj0EAwIDSAAwRQIgKnwYuFbE | ||
8c5RDT6MtETCBw/zNPX8I4lbfB1AaRrIq6MCIQD9anECeiEd9eEb9BKJxGABov60 | ||
n/sjD+PQKsFJOs6+QQ== | ||
-----END CERTIFICATE----- |
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,41 @@ | ||
# Sommelier | ||
|
||
## kubeconfig | ||
|
||
### Prerequisites | ||
|
||
- Set up [waiter](waiter.md) first | ||
- [sommelier-ca.pem](sommelier-ca.pem) | ||
|
||
### Linux Version | ||
|
||
```bash | ||
# Configure the cluster | ||
kubectl config set-cluster snucse-sommelier \ | ||
--server=https://sommelier.snucse.org:6444 \ | ||
--embed-certs \ | ||
--certificate-authority=sommelier-ca.pem | ||
|
||
# Configure authentication | ||
kubectl config set-credentials bacchus-dex \ | ||
--exec-api-version=client.authentication.k8s.io/v1beta1 \ | ||
--exec-command=kubectl \ | ||
--exec-arg=oidc-login \ | ||
--exec-arg=get-token \ | ||
--exec-arg=--oidc-issuer-url=https://auth.bacchus.io/dex \ | ||
--exec-arg=--oidc-client-id=bacchus-waiter \ | ||
--exec-arg=--oidc-extra-scope=email \ | ||
--exec-arg=--oidc-extra-scope=groups \ | ||
--exec-arg=--oidc-use-pkce | ||
|
||
# Configure context | ||
kubectl config set-context snucse-sommelier-bacchus \ | ||
--cluster=snucse-sommelier \ | ||
--user=bacchus-dex | ||
|
||
# Switch to the context | ||
kubectl config use-context snucse-sommelier-bacchus | ||
|
||
# Verify configuration | ||
kubectl auth whoami | ||
``` |
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