mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 08:46:38 +00:00
feat(kubernetes): enable newtInstances by default and update installation instructions
Signed-off-by: Marc Schäfer <git@marcschaeferger.de>
This commit is contained in:
@@ -101,6 +101,7 @@ export function NewtSiteInstallCommands({
|
|||||||
`helm install newt fossorial/newt \\
|
`helm install newt fossorial/newt \\
|
||||||
--create-namespace \\
|
--create-namespace \\
|
||||||
--set newtInstances[0].name="main-tunnel" \\
|
--set newtInstances[0].name="main-tunnel" \\
|
||||||
|
--set newtInstances[0].enabled=true \\
|
||||||
--set-string newtInstances[0].auth.keys.endpointKey="${endpoint}" \\
|
--set-string newtInstances[0].auth.keys.endpointKey="${endpoint}" \\
|
||||||
--set-string newtInstances[0].auth.keys.idKey="${id}" \\
|
--set-string newtInstances[0].auth.keys.idKey="${id}" \\
|
||||||
--set-string newtInstances[0].auth.keys.secretKey="${secret}"`
|
--set-string newtInstances[0].auth.keys.secretKey="${secret}"`
|
||||||
@@ -185,59 +186,68 @@ WantedBy=default.target`
|
|||||||
className="mt-4"
|
className="mt-4"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="pt-4">
|
<div className="pt-4">
|
||||||
<p className="font-bold mb-3">
|
<p className="font-bold mb-3">{t("siteConfiguration")}</p>
|
||||||
{t("siteConfiguration")}
|
<div className="flex items-center space-x-2 mb-2">
|
||||||
</p>
|
<CheckboxWithLabel
|
||||||
<div className="flex items-center space-x-2 mb-2">
|
id="acceptClients"
|
||||||
<CheckboxWithLabel
|
aria-describedby="acceptClients-desc"
|
||||||
id="acceptClients"
|
checked={acceptClients}
|
||||||
aria-describedby="acceptClients-desc"
|
onCheckedChange={(checked) => {
|
||||||
checked={acceptClients}
|
const value = checked as boolean;
|
||||||
onCheckedChange={(checked) => {
|
setAcceptClients(value);
|
||||||
const value = checked as boolean;
|
}}
|
||||||
setAcceptClients(value);
|
label={t("siteAcceptClientConnections")}
|
||||||
}}
|
/>
|
||||||
label={t("siteAcceptClientConnections")}
|
</div>
|
||||||
/>
|
<p
|
||||||
</div>
|
id="acceptClients-desc"
|
||||||
<p
|
className="text-sm text-muted-foreground"
|
||||||
id="acceptClients-desc"
|
>
|
||||||
className="text-sm text-muted-foreground"
|
{t("siteAcceptClientConnectionsDescription")}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="pt-4">
|
||||||
|
<p className="font-bold mb-3">{t("commands")}</p>
|
||||||
|
<p className="text-sm text-muted-foreground mb-3">
|
||||||
|
For more and up to date Kubernetes installation
|
||||||
|
information, see{" "}
|
||||||
|
<a
|
||||||
|
href="https://docs.pangolin.net/manage/sites/install-kubernetes"
|
||||||
|
target="_blank"
|
||||||
|
rel="noreferrer"
|
||||||
|
className="underline"
|
||||||
>
|
>
|
||||||
{t("siteAcceptClientConnectionsDescription")}
|
docs.pangolin.net/manage/sites/install-kubernetes
|
||||||
</p>
|
</a>
|
||||||
</div>
|
.
|
||||||
|
</p>
|
||||||
|
<div className="mt-2 space-y-3">
|
||||||
|
{commands.map((item, index) => {
|
||||||
|
const commandText =
|
||||||
|
typeof item === "string" ? item : item.command;
|
||||||
|
const title =
|
||||||
|
typeof item === "string"
|
||||||
|
? undefined
|
||||||
|
: item.title;
|
||||||
|
|
||||||
<div className="pt-4">
|
return (
|
||||||
<p className="font-bold mb-3">{t("commands")}</p>
|
<div key={index}>
|
||||||
<div className="mt-2 space-y-3">
|
{title && (
|
||||||
{commands.map((item, index) => {
|
<p className="text-sm font-medium mb-1.5">
|
||||||
const commandText =
|
{title}
|
||||||
typeof item === "string"
|
</p>
|
||||||
? item
|
)}
|
||||||
: item.command;
|
<CopyTextBox
|
||||||
const title =
|
text={commandText}
|
||||||
typeof item === "string"
|
outline={true}
|
||||||
? undefined
|
/>
|
||||||
: item.title;
|
</div>
|
||||||
|
);
|
||||||
return (
|
})}
|
||||||
<div key={index}>
|
|
||||||
{title && (
|
|
||||||
<p className="text-sm font-medium mb-1.5">
|
|
||||||
{title}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
<CopyTextBox
|
|
||||||
text={commandText}
|
|
||||||
outline={true}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
})}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</SettingsSectionBody>
|
</SettingsSectionBody>
|
||||||
</SettingsSection>
|
</SettingsSection>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user