Skip to content
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

Update ghes docs, deployments #149

Merged
merged 4 commits into from
Nov 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/baremetal-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GHAE - deploy runners (bare metal)
name: GHES - deploy runners (bare metal)

on:
workflow_dispatch: # deploy on demand
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/baremetal-remove.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: GHAE - remove runners (bare metal)
name: GHES - remove runners (bare metal)

on:
workflow_dispatch: # deploy on demand
Expand Down
13 changes: 12 additions & 1 deletion deployments/ghes/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# GHES runners

There's nothing special about these runners. They deploy to a different Kubernetes cluster (the `bare-metal` environment) and attach to a different organization in GHES. The [`bootstrap.sh`](bootstrap.sh) script takes a URL and token to set up test environments very quickly.
There's nothing special about these runners. They deploy to a different Kubernetes cluster (the `docker-desktop` environment or the `open-shift` environment) and attach to a different organization in GHES for testing/demonstration. The [`bootstrap.sh`](bootstrap.sh) script takes a URL and token to set up test environments very quickly.

## Local environments

This bootstrap script has been tested and is used routinely on [Docker Desktop's local Kubernetes cluster](https://docs.docker.com/desktop/kubernetes/), [Azure Kubernetes Service](https://azure.microsoft.com/en-us/products/kubernetes-service/#overview), and [RedHat OpenShift Local](https://access.redhat.com/documentation/en-us/red_hat_openshift_local).

For OpenShift, because these are privileged pods, you must allow this explicitly in the namespaces the pods will run in.

```shell
oc adm policy add-scc-to-user privileged -z default -n runners
oc adm policy add-scc-to-user privileged -z default -n test-runners
```
4 changes: 2 additions & 2 deletions deployments/ghes/podman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ spec:
replicas: 2
template:
spec:
# enterprise: github
organization: acme
enterprise: github
# organization: acme
# repository: acme/testrepo
ephemeral: true
image: ghcr.io/some-natalie/kubernoodles/podman:latest # change this to the version you really want!
Expand Down
4 changes: 2 additions & 2 deletions deployments/ghes/rootless-ubuntu-focal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ spec:
replicas: 2
template:
spec:
# enterprise: github
organization: acme
enterprise: github
# organization: acme
# repository: acme/testrepo
ephemeral: true
image: ghcr.io/some-natalie/kubernoodles/rootless-ubuntu-focal:latest # change this to the version you really want!
Expand Down
4 changes: 2 additions & 2 deletions deployments/ghes/ubuntu-focal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ spec:
replicas: 2
template:
spec:
# enterprise: github
organization: acme
enterprise: github
# organization: acme
# repository: acme/testrepo
ephemeral: true
image: ghcr.io/some-natalie/kubernoodles/ubuntu-focal:latest # change this to the version you really want!
Expand Down
4 changes: 2 additions & 2 deletions deployments/ghes/ubuntu-jammy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ spec:
replicas: 2
template:
spec:
# enterprise: github
organization: acme
enterprise: github
# organization: acme
# repository: acme/testrepo
ephemeral: true
image: ghcr.io/some-natalie/kubernoodles/ubuntu-jammy:latest # change this to the version you really want!
Expand Down