init
This commit is contained in:
34
template/devfile.yaml
Normal file
34
template/devfile.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
schemaVersion: 2.2.0
|
||||
|
||||
metadata:
|
||||
name: {{ .projectName }}
|
||||
|
||||
components:
|
||||
- name: tools
|
||||
container:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/zeroware/devcontainer:latest
|
||||
memoryLimit: 4Gi
|
||||
|
||||
endpoints:
|
||||
- name: http
|
||||
exposure: public
|
||||
protocol: http
|
||||
targetPort: 8080
|
||||
|
||||
- name: ssh-service
|
||||
kubernetes:
|
||||
deployByDefault: true
|
||||
inlined: |
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .projectName }}-ssh
|
||||
spec:
|
||||
ports:
|
||||
- name: ssh
|
||||
port: 22222
|
||||
protocol: TCP
|
||||
targetPort: 22222
|
||||
selector:
|
||||
controller.devfile.io/devworkspace_name: {{ .projectName }}
|
||||
type: NodePort
|
||||
Reference in New Issue
Block a user