Initial Commit to Add RestAPI Server to IEC
[iec.git] / src / foundation / api / k8s / iecapi.yaml
1 # yamllint disable rule:hyphens rule:commas rule:indentation
2 apiVersion: v1
3 kind: Service
4 metadata:
5   name: iec-apiserver-svc
6   labels:
7     app: iec-apiserver-svc
8 spec:
9   type: NodePort
10   ports:
11     - protocol: TCP
12       port: 80
13       targetPort: 9131
14       nodePort: 31131
15   selector:
16     app: iec-apiserver
17
18 ---
19 apiVersion: v1
20 kind: ReplicationController
21 metadata:
22   name: iec-apiserver
23 spec:
24   replicas: 2
25   template:
26     metadata:
27       labels:
28         app: iec-apiserver
29     spec:
30       containers:
31         - name: iec-apiserver
32           image: iecedge/iec-apiserver:latest
33           imagePullPolicy: IfNotPresent
34           ports:
35               - containerPort: 9131