OSDN Git Service

test-container: merge k8s svc settings to k8s-newslash-dev.yaml
authorhylom <hylom@users.sourceforge.jp>
Fri, 6 Jul 2018 10:53:27 +0000 (19:53 +0900)
committerhylom <hylom@users.sourceforge.jp>
Fri, 6 Jul 2018 10:53:27 +0000 (19:53 +0900)
test-container/k8s-newslash-dev.yaml
test-container/k8s-newslash-test-svc.yaml [deleted file]

index 5472961..a1033a9 100644 (file)
@@ -1,9 +1,27 @@
 apiVersion: v1
+kind: Service
+metadata:
+  name: newslash-dev
+spec:
+  type: NodePort
+  clusterIP: 10.254.100.100
+  ports:
+    - port: 22
+      protocol: TCP
+      name: ssh
+    - port: 3000
+      nodePort: 30100
+      protocol: TCP
+      name: https
+  selector:
+    app: newslash-dev
+---
+apiVersion: v1
 kind: Pod
 metadata:
   name: newslash-dev
   labels:
-    app: newslash-test
+    app: newslash-dev
 spec:
   imagePullSecrets:
     - name: regcred
diff --git a/test-container/k8s-newslash-test-svc.yaml b/test-container/k8s-newslash-test-svc.yaml
deleted file mode 100644 (file)
index d92d17d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
-  name: newslash-test
-spec:
-  type: NodePort
-  clusterIP: 10.254.100.100
-  ports:
-    - port: 22
-      protocol: TCP
-      name: ssh
-    - port: 3000
-      nodePort: 30100
-      protocol: TCP
-      name: https
-  selector:
-    app: newslash-test