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..de679ca --- /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: 8080 + protocol: TCP + targetPort: 8080 + selector: + app: adder + sessionAffinity: None + type: ClusterIP \ No newline at end of file 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 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..11ed3a0 --- /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: 8080 + protocol: TCP + targetPort: 8080 + selector: + app: source + sessionAffinity: None + type: ClusterIP \ No newline at end of file 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..786d3d0 --- /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: 8080 + protocol: TCP + targetPort: 8080 + selector: + app: suber + sessionAffinity: None + type: ClusterIP \ No newline at end of file diff --git a/flux.yaml b/flux.yaml index c8fc14f..3889970 100644 --- a/flux.yaml +++ b/flux.yaml @@ -110,8 +110,8 @@ items: containers: - args: - --ssh-keygen-dir=/var/fluxd/keygen - - --git-url=https://github.com/chanwit/minifk - - --git-branch=master + - --git-url=https://github.com/newler55/minifk.git + - --git-branch=final - --git-poll-interval=30s - --git-path=. - --git-readonly