Skip to content

Commit e3e4b25

Browse files
committed
Add demo assets
Signed-off-by: Mario Loriedo <[email protected]>
1 parent 9d2860c commit e3e4b25

5 files changed

+118
-0
lines changed

demo-assets/k-debug-by-copy.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
pod=outyet
4+
img=golang
5+
new_pod=outyet-debug
6+
7+
kubectl debug -it $pod \
8+
--image $img \
9+
--share-processes \
10+
--copy-to=$new_pod

demo-assets/k-debug-ephemeral.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
pod=outyet
4+
img=ghcr.io/l0rd/outyet-dev:latest
5+
container=outyet
6+
7+
k debug -it $pod \
8+
--image $img \
9+
--target $container

demo-assets/k-debug-ide.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
pod=outyet
4+
img=ghcr.io/l0rd/outyet-dev:latest
5+
new_pod=outyet-debug
6+
repo=https://github.com/l0rd/outyet.git
7+
8+
kubectl debug-ide $pod \
9+
--image $img \
10+
--share-processes \
11+
--copy-to=$new_pod \
12+
--git-repository $repo

demo-assets/outyet-devworkspace.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
kind: DevWorkspace
2+
apiVersion: workspace.devfile.io/v1alpha2
3+
metadata:
4+
name: outyet-dw
5+
spec:
6+
started: true
7+
template:
8+
attributes:
9+
controller.devfile.io/storage-type: ephemeral
10+
projects:
11+
- name: outyet
12+
git:
13+
remotes:
14+
origin: https://github.com/l0rd/outyet.git
15+
components:
16+
- name: dev-tooling
17+
container:
18+
image: ghcr.io/l0rd/outyet-dev:latest
19+
memoryRequest: 2G
20+
memoryLimit: 10G
21+
cpuRequest: '1'
22+
cpuLimit: '4'
23+
contributions:
24+
- name: che-code
25+
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
26+
components:
27+
- name: che-code-runtime-description
28+
container:
29+
env:
30+
- name: CODE_HOST
31+
value: 0.0.0.0
32+

demo-assets/outyet.yaml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: outyet
5+
labels:
6+
app: outyet
7+
spec:
8+
securityContext:
9+
runAsNonRoot: true
10+
containers:
11+
- name: outyet
12+
image: ghcr.io/l0rd/outyet:latest
13+
ports:
14+
- containerPort: 8080
15+
protocol: TCP
16+
resources:
17+
limits:
18+
memory: "128Mi"
19+
cpu: "500m"
20+
securityContext:
21+
allowPrivilegeEscalation: false
22+
capabilities:
23+
drop:
24+
- "ALL"
25+
seccompProfile:
26+
type: RuntimeDefault
27+
---
28+
kind: Service
29+
apiVersion: v1
30+
metadata:
31+
labels:
32+
app: outyet
33+
name: outyet-service
34+
spec:
35+
ports:
36+
- port: 8080
37+
protocol: TCP
38+
targetPort: 8080
39+
selector:
40+
app: outyet
41+
type: ClusterIP
42+
---
43+
apiVersion: route.openshift.io/v1
44+
kind: Route
45+
metadata:
46+
labels:
47+
app: outyet
48+
name: outyet-route
49+
spec:
50+
port:
51+
targetPort: 8080
52+
to:
53+
kind: Service
54+
name: outyet-service
55+
---

0 commit comments

Comments
 (0)