diff --git a/k8s/base/api-svr.yaml b/k8s/base/api-svr.yaml new file mode 100644 index 00000000..6c383cb2 --- /dev/null +++ b/k8s/base/api-svr.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: coal-api +spec: + selector: + app: coal-api + ports: + - protocol: TCP + port: 7456 + targetPort: 7456 + type: ClusterIP \ No newline at end of file diff --git a/k8s/base/api.yaml b/k8s/base/api.yaml new file mode 100644 index 00000000..464b12d1 --- /dev/null +++ b/k8s/base/api.yaml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: coal-api + labels: + app: coal-api +spec: + replicas: 1 + selector: + matchLabels: + app: coal-api + template: + metadata: + name: coal-api + labels: + app: coal-api + spec: + containers: + - name: coal-api + image: coal + imagePullPolicy: Always + ports: + - containerPort: 7456 + restartPolicy: Always diff --git a/k8s/base/ns.yaml b/k8s/base/ns.yaml new file mode 100644 index 00000000..d428c7a0 --- /dev/null +++ b/k8s/base/ns.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: coal \ No newline at end of file