This repository has been archived on 2025-01-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
toco-springboot-template/template/devfile.yaml
2024-07-17 11:28:07 +08:00

35 lines
756 B
YAML

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