Skip to content
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
10 changes: 10 additions & 0 deletions demo-assets/k-debug-by-copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

pod=outyet
img=golang
new_pod=outyet-debug

kubectl debug -it $pod \
--image $img \
--share-processes \
--copy-to=$new_pod
9 changes: 9 additions & 0 deletions demo-assets/k-debug-ephemeral.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

pod=outyet
img=ghcr.io/l0rd/outyet-dev:latest
container=outyet

k debug -it $pod \
--image $img \
--target $container
12 changes: 12 additions & 0 deletions demo-assets/k-debug-ide.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

pod=outyet
img=ghcr.io/l0rd/outyet-dev:latest
new_pod=outyet-debug
repo=https://github.com/l0rd/outyet.git

kubectl debug-ide $pod \
--image $img \
--share-processes \
--copy-to=$new_pod \
--git-repository $repo
32 changes: 32 additions & 0 deletions demo-assets/outyet-devworkspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
kind: DevWorkspace
apiVersion: workspace.devfile.io/v1alpha2
metadata:
name: outyet-dw
spec:
started: true
template:
attributes:
controller.devfile.io/storage-type: ephemeral
projects:
- name: outyet
git:
remotes:
origin: https://github.com/l0rd/outyet.git
components:
- name: dev-tooling
container:
image: ghcr.io/l0rd/outyet-dev:latest
memoryRequest: 2G
memoryLimit: 10G
cpuRequest: '1'
cpuLimit: '4'
contributions:
- name: che-code
uri: https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/che-incubator/che-code/latest/devfile.yaml
components:
- name: che-code-runtime-description
container:
env:
- name: CODE_HOST
value: 0.0.0.0

55 changes: 55 additions & 0 deletions demo-assets/outyet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: v1
kind: Pod
metadata:
name: outyet
labels:
app: outyet
spec:
securityContext:
runAsNonRoot: true
containers:
- name: outyet
image: ghcr.io/l0rd/outyet:latest
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
memory: "128Mi"
cpu: "500m"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
seccompProfile:
type: RuntimeDefault
---
kind: Service
apiVersion: v1
metadata:
labels:
app: outyet
name: outyet-service
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: outyet
type: ClusterIP
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: outyet
name: outyet-route
spec:
port:
targetPort: 8080
to:
kind: Service
name: outyet-service
---
Loading