v2-ww.jpg

主页:

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

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code