From f5b0723622a8ad53c59464928375d6b7c432e985 Mon Sep 17 00:00:00 2001 From: newler55 Date: Sun, 21 Jun 2020 05:14:34 +0700 Subject: [PATCH 1/8] setup FLUX --- flux.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flux.yaml b/flux.yaml index c8fc14f..74f7b89 100644 --- a/flux.yaml +++ b/flux.yaml @@ -110,7 +110,7 @@ items: containers: - args: - --ssh-keygen-dir=/var/fluxd/keygen - - --git-url=https://github.com/chanwit/minifk + - --git-url=https://github.com/newler55/minifk - --git-branch=master - --git-poll-interval=30s - --git-path=. From 54ae43173c20bf0683ddb74dc2591ba12091dfb6 Mon Sep 17 00:00:00 2001 From: newler55 Date: Sun, 21 Jun 2020 05:49:13 +0700 Subject: [PATCH 2/8] Initial cluster configuration --- flux.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flux.yaml b/flux.yaml index 74f7b89..1b12f97 100644 --- a/flux.yaml +++ b/flux.yaml @@ -110,7 +110,7 @@ items: containers: - args: - --ssh-keygen-dir=/var/fluxd/keygen - - --git-url=https://github.com/newler55/minifk + - --git-url=https://github.com/newler55/minifk.git - --git-branch=master - --git-poll-interval=30s - --git-path=. From 3d5fa847eb7db86a4b2f2cbd38ee6744a8528d19 Mon Sep 17 00:00:00 2001 From: newler55 Date: Sun, 21 Jun 2020 14:42:21 +0700 Subject: [PATCH 3/8] Initial cluster configuration --- flux.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flux.yaml b/flux.yaml index 1b12f97..3889970 100644 --- a/flux.yaml +++ b/flux.yaml @@ -111,7 +111,7 @@ items: - args: - --ssh-keygen-dir=/var/fluxd/keygen - --git-url=https://github.com/newler55/minifk.git - - --git-branch=master + - --git-branch=final - --git-poll-interval=30s - --git-path=. - --git-readonly From 4dbd65afe624d73ed971c8db8e882aa59adfe26c Mon Sep 17 00:00:00 2001 From: newler55 Date: Sun, 21 Jun 2020 15:03:24 +0700 Subject: [PATCH 4/8] add source deploy,svc --- B6015695/source_deploy.yaml | 30 ++++++++++++++++++++++++++++++ B6015695/source_svc.yaml | 16 ++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 B6015695/source_deploy.yaml create mode 100644 B6015695/source_svc.yaml diff --git a/B6015695/source_deploy.yaml b/B6015695/source_deploy.yaml new file mode 100644 index 0000000..faadfc7 --- /dev/null +++ b/B6015695/source_deploy.yaml @@ -0,0 +1,30 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + app: source + name: source + namespace: default +spec: + replicas: 1 + selector: + matchLabels: + app: source + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + labels: + app: source + spec: + containers: + - image: newler55/source + imagePullPolicy: IfNotPresent + name: source + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + terminationGracePeriodSeconds: 30 \ No newline at end of file diff --git a/B6015695/source_svc.yaml b/B6015695/source_svc.yaml new file mode 100644 index 0000000..2ecbab6 --- /dev/null +++ b/B6015695/source_svc.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: source + name: source + namespace: default +spec: + ports: + - port: 8001 + protocol: TCP + targetPort: 80 + selector: + app: source + sessionAffinity: None + type: ClusterIP \ No newline at end of file From 7de9e5b6177e522ce0c58bc6c7fd8226eced4904 Mon Sep 17 00:00:00 2001 From: newler55 Date: Sun, 21 Jun 2020 15:04:47 +0700 Subject: [PATCH 5/8] add adder deploy,svc --- B6015695/adder_deploy.yaml | 30 ++++++++++++++++++++++++++++++ B6015695/adder_svc.yaml | 16 ++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 B6015695/adder_deploy.yaml create mode 100644 B6015695/adder_svc.yaml diff --git a/B6015695/adder_deploy.yaml b/B6015695/adder_deploy.yaml new file mode 100644 index 0000000..a6dc271 --- /dev/null +++ b/B6015695/adder_deploy.yaml @@ -0,0 +1,30 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + app: adder + name: adder + namespace: default +spec: + replicas: 1 + selector: + matchLabels: + app: adder + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + labels: + app: adder + spec: + containers: + - image: newler55/adder + imagePullPolicy: IfNotPresent + name: adder + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + terminationGracePeriodSeconds: 30 \ No newline at end of file diff --git a/B6015695/adder_svc.yaml b/B6015695/adder_svc.yaml new file mode 100644 index 0000000..87ba0a4 --- /dev/null +++ b/B6015695/adder_svc.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: adder + name: adder + namespace: default +spec: + ports: + - port: 8002 + protocol: TCP + targetPort: 80 + selector: + app: adder + sessionAffinity: None + type: ClusterIP \ No newline at end of file From 5b4193b63db5d6e1af7cdc0be05a5b2aa8c72c4b Mon Sep 17 00:00:00 2001 From: newler55 Date: Sun, 21 Jun 2020 15:05:55 +0700 Subject: [PATCH 6/8] add suber deploy,svc --- B6015695/suber_deploy.yaml | 30 ++++++++++++++++++++++++++++++ B6015695/suber_svc.yaml | 16 ++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 B6015695/suber_deploy.yaml create mode 100644 B6015695/suber_svc.yaml diff --git a/B6015695/suber_deploy.yaml b/B6015695/suber_deploy.yaml new file mode 100644 index 0000000..54f5dca --- /dev/null +++ b/B6015695/suber_deploy.yaml @@ -0,0 +1,30 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + app: suber + name: suber + namespace: default +spec: + replicas: 1 + selector: + matchLabels: + app: suber + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + labels: + app: suber + spec: + containers: + - image: newler55/suber + imagePullPolicy: IfNotPresent + name: suber + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + terminationGracePeriodSeconds: 30 \ No newline at end of file diff --git a/B6015695/suber_svc.yaml b/B6015695/suber_svc.yaml new file mode 100644 index 0000000..7f29fc3 --- /dev/null +++ b/B6015695/suber_svc.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: suber + name: suber + namespace: default +spec: + ports: + - port: 8003 + protocol: TCP + targetPort: 80 + selector: + app: suber + sessionAffinity: None + type: ClusterIP \ No newline at end of file From 23113ad5b995bdf9757907270ddc8832ea81ec2c Mon Sep 17 00:00:00 2001 From: newler55 Date: Sun, 21 Jun 2020 15:06:54 +0700 Subject: [PATCH 7/8] add front deploy,svc --- B6015695/front_deploy.yaml | 30 ++++++++++++++++++++++++++++++ B6015695/front_svc.yaml | 17 +++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 B6015695/front_deploy.yaml create mode 100644 B6015695/front_svc.yaml diff --git a/B6015695/front_deploy.yaml b/B6015695/front_deploy.yaml new file mode 100644 index 0000000..efdfe2e --- /dev/null +++ b/B6015695/front_deploy.yaml @@ -0,0 +1,30 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + labels: + app: front + name: front + namespace: default +spec: + replicas: 1 + selector: + matchLabels: + app: front + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + labels: + app: front + spec: + containers: + - image: newler55/front + imagePullPolicy: IfNotPresent + name: front + dnsPolicy: ClusterFirst + restartPolicy: Always + schedulerName: default-scheduler + terminationGracePeriodSeconds: 30 \ No newline at end of file diff --git a/B6015695/front_svc.yaml b/B6015695/front_svc.yaml new file mode 100644 index 0000000..52aba8f --- /dev/null +++ b/B6015695/front_svc.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: front + name: front + namespace: default +spec: + externalTrafficPolicy: Cluster + ports: + - port: 9090 + protocol: TCP + targetPort: 8080 + selector: + app: front + sessionAffinity: None + type: LoadBalancer \ No newline at end of file From 998bd1bc68661ae078d9e1d08944f16bd932a7a9 Mon Sep 17 00:00:00 2001 From: newler55 Date: Sun, 21 Jun 2020 16:11:46 +0700 Subject: [PATCH 8/8] reset svc --- B6015695/adder_svc.yaml | 4 ++-- B6015695/source_svc.yaml | 4 ++-- B6015695/suber_svc.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/B6015695/adder_svc.yaml b/B6015695/adder_svc.yaml index 87ba0a4..de679ca 100644 --- a/B6015695/adder_svc.yaml +++ b/B6015695/adder_svc.yaml @@ -7,9 +7,9 @@ metadata: namespace: default spec: ports: - - port: 8002 + - port: 8080 protocol: TCP - targetPort: 80 + targetPort: 8080 selector: app: adder sessionAffinity: None diff --git a/B6015695/source_svc.yaml b/B6015695/source_svc.yaml index 2ecbab6..11ed3a0 100644 --- a/B6015695/source_svc.yaml +++ b/B6015695/source_svc.yaml @@ -7,9 +7,9 @@ metadata: namespace: default spec: ports: - - port: 8001 + - port: 8080 protocol: TCP - targetPort: 80 + targetPort: 8080 selector: app: source sessionAffinity: None diff --git a/B6015695/suber_svc.yaml b/B6015695/suber_svc.yaml index 7f29fc3..786d3d0 100644 --- a/B6015695/suber_svc.yaml +++ b/B6015695/suber_svc.yaml @@ -7,9 +7,9 @@ metadata: namespace: default spec: ports: - - port: 8003 + - port: 8080 protocol: TCP - targetPort: 80 + targetPort: 8080 selector: app: suber sessionAffinity: None