Skip to content

Commit e5356ca

Browse files
authored
Merge pull request #90 from packagist/kubernetes-maintenance
Self-Hosted: start maintenance and troubleshoot guide for Kubernetes
2 parents 5f85f4c + 55553c2 commit e5356ca

File tree

4 files changed

+73
-2
lines changed

4 files changed

+73
-2
lines changed

docs/self-hosted/kubernetes-embedded.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Installing Private Packagist Self-Hosted with an embeded Kubernetes cluster
1+
# Installing Private Packagist Self-Hosted in a Kubernetes cluster installed with kURL
22
##
33

44
Private Packagist Self-Hosted leverages the [kots](https://docs.replicated.com/reference/kots-cli-getting-started)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Maintenance
2+
## Private Packagist Self-Hosted (Kubernetes)
3+
4+
### Updates
5+
6+
By default Replicated checks for updates every 4 hours and you can install updates from the dashboard in the Replicated
7+
Management Console on port 8800 once they are available.
8+
You can configure this behavior under “Configure automatic updates” on the dashboard.
9+
10+
The [Private Packagist Self-Hosted Changelog](https://packagist.com/docs/self-hosted/changelog) details all new features,
11+
behavior changes and major bugfixes each release introduces.
12+
13+
New versions that ask you to upgrade KOTS (Kubernetes Off-The-Shelf), the Replicated tool used to distribute Private Packagist,
14+
require that you download and rerun the install script via the command below.
15+
16+
#### Update KOTS for Private Packagist Self-Hosted Kubernetes in a Kubernetes cluster installed with kURL
17+
18+
Please note that running the command will take a while as it will also update Kubernetes and other dependencies of Private Packagist Self-Hosted.
19+
Private Packagist and the Replicated Management Console will become temporarily unavailable.
20+
21+
```
22+
curl -sSL https://k8s.kurl.sh/privatepackagistkots | bash -s
23+
```
24+
25+
#### Update KOTS for Private Packagist Self-Hosted Kubernetes in an existing cluster
26+
27+
```
28+
curl https://kots.io/install | bash
29+
kubectl kots admin-console upgrade -n NAMESPACE
30+
```
31+
32+
Replace `NAMESPACE` with the namespace in your cluster where KOTS is installed.
33+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Troubleshooting
2+
## Private Packagist Self-Hosted (Kubernetes)
3+
4+
#### Private Packagist Self-Hosted update requires KOTS upgrade
5+
If the dashboard shows:
6+
7+
'This version of Private Packagist Self-Hosted requires a version of KOTS that is different than what you currently have installed.'
8+
9+
Please refer to the "[Updates](./kubernetes-maintenance.md#updates)" section in our maintenance guide.
10+
11+
#### Generating a support bundle
12+
13+
You can generate a support bundle from the Replicated Management Console on port
14+
8800 by navigating to the Troubleshoot tab, clicking "Generate a support bundle",
15+
and selecting "Analyze".
16+
Once the analysis is done, either download the bundle and manually send it to us
17+
or click on the send icon which will send us the bundle. Please always notify us
18+
if you send us a support bundle!
19+
20+
#### Issues with Multi-factor Authentication
21+
22+
If you are having problems setting up MFA, or are unable to log in via MFA, with
23+
your generated codes, there may be a time-drift issue with either the
24+
Self-hosted Private Packagist server or the device you are using to generate the
25+
codes.
26+
27+
To make sure that the Self-hosted Private Packagist server is synchronized to
28+
the correct time, you should check that both the current server time and
29+
timezone are set to the correct values. If you can enable Network Time Protocol
30+
(NTP) for the server, we also recommend doing that.
31+
32+
The methods for doing so will vary depending on the underlying server Operating
33+
System.
34+
35+
> Please be aware that offline-based TOTP hardware can drift up to a few minutes
36+
> a year. As Private Packagist only allows a time-drift of up to one (1) minute, we
37+
> recommend using TOTP devices that have the ability to stay synchronized with
38+
> the correct time (such as a phone, or re-programmable TOTP hardware devices).

docs/self-hosted/kubernetes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ an embedded Kubernetes cluster on a linux machine.
1717

1818
If you already have an existing Kubernetes cluster running, follow [this guide](./kubernetes-existing.md).
1919

20-
#### Installing Private Packagist Self-Hosted Kubernetes without an existing cluster
20+
#### Installing Private Packagist Self-Hosted Kubernetes in a Kubernetes cluster installed with kURL
2121

2222
Don't use Kubernetes? Use the installer that takes care of installing Private Packagist Self-Hosted on a linux
2323
machine following [this guide](./kubernetes-embedded.md).

0 commit comments

Comments
 (0)