diff --git a/app/tests/tmpTocken b/app/tests/tmpTocken new file mode 100644 index 000000000..e2b0ed32a --- /dev/null +++ b/app/tests/tmpTocken @@ -0,0 +1 @@ +ya29.Gl1LBIp2oGmdfG9JDqeD9fphy1Sm9DE81Y7gZegZSCnkPbn2arXARmW7NQqsiRvtH_B958CHjVFcv-T7Yn1ebI9VCwzmGlo6p7zzTGELB1Tl9huBZeP3EuyYBea2aBI diff --git a/deploy/kube-app.yml b/deploy/kube-app.yml index 910d371be..cfd446f78 100644 --- a/deploy/kube-app.yml +++ b/deploy/kube-app.yml @@ -2,23 +2,22 @@ apiVersion: extensions/v1beta1 kind: Deployment metadata: - name: app + name: demo-chat labels: - service: app + service: demo-chat spec: - replicas: 2 + replicas: 1 template: metadata: annotations: forceRedeployUniqId: "N/A" labels: - service: app + service: demo-chat spec: containers: - - image: containers101/demochat:master + - image: ${{build_step}} name: app imagePullPolicy: Always ports: - containerPort: 5000 protocol: TCP - diff --git a/deploy/kube-ingress-demo.yml b/deploy/kube-ingress-demo.yml new file mode 100644 index 000000000..062ee0916 --- /dev/null +++ b/deploy/kube-ingress-demo.yml @@ -0,0 +1,8 @@ +apiVersion: extensions/v1beta1g +kind: Ingress +metadata: + name: demochat-ingress +spec: + backend: + serviceName: demochat-board + servicePort: 80 diff --git a/deploy/kube-ingress.yml b/deploy/kube-ingress.yml index 08c09b016..974fe2f6a 100644 --- a/deploy/kube-ingress.yml +++ b/deploy/kube-ingress.yml @@ -3,8 +3,8 @@ apiVersion: v1 kind: Service metadata: labels: - app: app - name: app + app: demo-chat + name: demo-chat spec: type: NodePort ports: @@ -13,13 +13,13 @@ spec: protocol: TCP targetPort: 5000 selector: - service: app + service: demo-chat --- -apiVersion: extensions/v1beta1 +apiVersion: extensions/v1beta1g kind: Ingress metadata: name: demochat-ingress spec: backend: - serviceName: app + serviceName: demochat-board servicePort: 80 diff --git a/deploy/kube-mongo.yml b/deploy/kube-mongo.yml index c3e589cd9..8cfa8aa1c 100644 --- a/deploy/kube-mongo.yml +++ b/deploy/kube-mongo.yml @@ -1,25 +1,27 @@ ---- -kind: StorageClass -apiVersion: storage.k8s.io/v1beta1 -metadata: - name: gce-disk -provisioner: kubernetes.io/gce-pd -parameters: - type: pd-ssd +#--- +#kind: StorageClass +#apiVersion: storage.k8s.io/v1beta1 +#metadata: +# name: gce-disk +#provisioner: kubernetes.io/gce-pd +#parameters: +# type: pd-ssd + +#--- +#apiVersion: v1 +#kind: PersistentVolume +#metadata: + #name: mongo-volume + #annotations: + # volume.beta.kubernetes.io/storage-class: gce-disk +#spec: + #accessModes: + # - ReadWriteOnce + #capacity: + # storage: 5Gi + #hostPath: + # path: /data/pv0001/ ---- -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: mongo-volume-claim - annotations: - volume.beta.kubernetes.io/storage-class: gce-disk -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 3Gi --- apiVersion: v1 kind: Service @@ -66,5 +68,4 @@ spec: restartPolicy: Always volumes: - name: mongo-data - persistentVolumeClaim: - claimName: mongo-volume-claim + emptyDir: {} diff --git a/deploy/kube-service.yml b/deploy/kube-service.yml new file mode 100644 index 000000000..f345b4bbd --- /dev/null +++ b/deploy/kube-service.yml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: demochat-board + name: demochat-board +spec: + type: NodePort + ports: + - name: "http" + port: 80 + protocol: TCP + targetPort: 5000 + selector: + service: demochat-board