remix-ide是浏览器的ide,官方已经提供地址,但是需要连接外网。如果是内网,需要自己在服务器里搭建remix-ide;另一种方式是用remix-ide的桌面版。这里只讨论在服务器里搭建remix-ide,请问部署在k3s中,yaml如何写?
yaml如下:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: remix-ide
name: remix-ide
namespace: moonfdd
spec:
replicas: 1
selector:
matchLabels:
app: remix-ide
template:
metadata:
labels:
app: remix-ide
spec:
containers:
- image: "moonfdd/remix-ide:0.29.0"
imagePullPolicy: IfNotPresent
name: remix-ide
---
apiVersion: v1
kind: Service
metadata:
labels:
app: remix-ide
name: remix-ide
namespace: moonfdd
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: remix-ide
type: NodePort