kubernetes部署fastposter海报生成器
主页:
https://gitee.com/psoho/fast-poster
kubernetes:
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fast-poster
namespace: sre
spec:
replicas: 1
selector:
matchLabels:
k8s.kuboard.cn/name: fast-poster
template:
metadata:
labels:
k8s.kuboard.cn/name: fast-poster
spec:
containers:
- image: tangweixin/fast-poster
imagePullPolicy: IfNotPresent
name: fast-poster
ports:
- containerPort: 9001
name: http
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
k8s.kuboard.cn/name: fast-poster
name: fast-poster
namespace: sre
spec:
ports:
- name: http
nodePort: 30023
port: 9001
protocol: TCP
targetPort: 9001
selector:
k8s.kuboard.cn/name: fast-poster
type: NodePort