-
Notifications
You must be signed in to change notification settings - Fork 1
docs: new section Manuals in How To Administrate #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,70 @@ | ||
| # Manuals | ||
|
|
||
| This section will cover various administrative tasks that one might need when running a Kubernetes cluster in general (and Wire). | ||
|
|
||
| ## Test an ingress is working from inside the cluster | ||
|
|
||
| Source the [d](https://github.com/wireapp/wire-server-deploy/blob/master/offline/docs_ubuntu_22.04.md#making-tooling-available-in-your-environment) alias from our script if you haven't done so already. | ||
|
|
||
| ``` | ||
| source ./bin/offline-env.sh | ||
| ``` | ||
|
|
||
| List out | ||
| Fetch the IP address of your `ingress-nginx-controller-controller` LoadBalancer with: | ||
|
|
||
| ``` | ||
| d kubectl get svc ingress-nginx-controller-controller | ||
| ``` | ||
|
|
||
| Get the full name of your `fake-aws-sns` pod with: | ||
|
|
||
| ``` | ||
| d kubectl get pods | ||
| # or | ||
| d kubectl get pods -l app=fake-aws-sns | ||
| ``` | ||
|
|
||
| Log onto the SNS pod with: | ||
|
|
||
| ``` | ||
| d kubectl exec -it fake-aws-sns-xxxxxx-yyyyyyy -- /bin/bash | ||
| ``` | ||
|
|
||
| This will drop you into a bash shell. In here, run: | ||
|
|
||
| ``` | ||
| curl -k -H "X-Host: WEBAPPDOMAINNAME" -H "Host: WEBAPPDOMAINNAME" https://NGINXCONTROLLERCONTROLLER:443/ -v | ||
| ``` | ||
|
|
||
| You should get a valid response and the HTML of webapp if all is working correctly. | ||
|
|
||
| ## Load an image into containerd in an offline/airgapped environment | ||
|
|
||
| If you ever need to load an image in an offline/airgapped environment for an important security update of a Wire or Kubernetes component. First, download the new release you will be installing. For example, with docker: | ||
|
|
||
| ``` | ||
| docker pull registry.k8s.io/ingress-nginx/controller:v1.12.1 | ||
| ``` | ||
|
|
||
| Now save it in `.tar` and replace the forward slashes and colons with underscores, like this: | ||
|
|
||
| ``` | ||
| docker save -o registry.k8s.io_ingress-nginx_controller_v1.12.1.tar registry.k8s.io/ingress-nginx/controller:v1.12.1 | ||
| ``` | ||
|
|
||
| Now copy the `.tar` file over to all of your kubernetes hosts. | ||
|
|
||
| Load it into containerd with: | ||
|
|
||
| ``` | ||
| ctr -n k8s.io images import registry.k8s.io_ingress-nginx_controller_v1.12.1.tar | ||
| ``` | ||
|
|
||
| Verify the image is in the containerd list after import with: | ||
|
|
||
| ``` | ||
| ctr -n k8s.io images list | grep ingress-nginx | ||
| ``` | ||
|
|
||
| The image is now ready to be used. | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to point out to what is
dhere or point it to the other references.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dis explained here The shell script will set up a d alias. Which runs commands passed to it inside the docker container with all the tools needed for doing an offline deploy.