Skip to content

Commit

Permalink
Added launch button and link to Karpenter workshop (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson authored Jan 19, 2024
1 parent 57e39d3 commit 0eab7ef
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/docs/autoscaling/compute/karpenter/further.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "Further learning"
sidebar_position: 90
---

This lab has introduced the basics of managing EKS compute with Karpenter, but has only scraped the surface of its capabilities!

For a more thorough set of hands-on exercises please see the Karpenter Workshop linked below.

<launchButton url="https://catalog.workshops.aws/karpenter" label="Karpenter Workshop" />
20 changes: 20 additions & 0 deletions website/src/components/LaunchButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React, {type ReactNode} from 'react';
import clsx from 'clsx';

import styles from './styles.module.css';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faArrowUpRightFromSquare } from '@fortawesome/free-solid-svg-icons';

interface Props {
url: string;
label: string;
}

export default function BrowserWindow({
url = 'http://localhost:3000',
label = 'Launch'
}: Props): JSX.Element {
return (
<a className={styles.button} href={url} target="_blank">{label} <FontAwesomeIcon className={styles.icon} icon={faArrowUpRightFromSquare} /></a>
);
}
19 changes: 19 additions & 0 deletions website/src/components/LaunchButton/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.button {
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;

text-decoration: none;
color: initial;
background-color: #f90;
padding-inline: 20px;
padding-block: 4px;
border: 1px solid #f90;
font-weight: bold;
border-radius: 2px;
cursor: pointer;
}

.icon {
padding-left: 4px;
}
2 changes: 2 additions & 0 deletions website/src/theme/MDXComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import CodeBlock from '@theme/CodeBlock';
import Kustomization from '@site/src/components/Kustomization';
import LaunchButton from '@site/src/components/LaunchButton';

export default {
// Re-use the default mapping
Expand All @@ -15,4 +16,5 @@ export default {
terminal: Terminal,
browser: BrowserWindow,
kustomization: Kustomization,
launchButton: LaunchButton
};

0 comments on commit 0eab7ef

Please sign in to comment.