Skip to content

Instantly share code, notes, and snippets.

@kadel
Created August 31, 2021 15:27
Show Gist options
  • Save kadel/477d76d2ca22c6082dca7cd129a185c1 to your computer and use it in GitHub Desktop.
Save kadel/477d76d2ca22c6082dca7cd129a185c1 to your computer and use it in GitHub Desktop.
simple devfile
commands:
- exec:
commandLine: "echo build"
component: tools
group:
isDefault: true
kind: build
id: build
- exec:
commandLine: "sleep infinite"
component: tools
group:
isDefault: true
kind: run
id: run
components:
- container:
image: quay.io/prometheus/busybox:latest
mountSources: true
name: tools
- kubernetes:
inlined: |
apiVersion: v1
kind: Service
metadata:
name: test-svc
spec:
ports:
- name: 3000-3000
port: 3000
protocol: TCP
targetPort: 3000
selector:
app: test
type: ClusterIP
name: test-svc
- kubernetes:
inlined: |
apiVersion: batch/v1
kind: Job
metadata:
name: test-job
spec:
template:
spec:
containers:
- name: pi
image: perl
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: Never
backoffLimit: 4
name: test-job
metadata:
name: test
schemaVersion: 2.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment