This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment # 1 | |
metadata: | |
name: sa-frontend | |
spec: | |
replicas: 2 # 2 | |
minReadySeconds: 15 | |
strategy: | |
type: RollingUpdate # 3 | |
rollingUpdate: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.6 | |
ENV PGHOST='localhost:5432' | |
ENV PGDATABASE='postgres' | |
ENV PGUSER='postgres@postgres' | |
ENV PGPASSWORD='password' | |
RUN apk update | |
RUN apk add postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: sa-feedback | |
spec: | |
strategy: | |
type: Recreate | |
template: | |
metadata: | |
labels: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: sqlite-pvc # 1 | |
spec: | |
accessModes: | |
- ReadWriteOnce # 2 | |
resources: | |
requests: | |
storage: 1Gi # 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: http-gateway | |
spec: | |
selector: | |
istio: ingressgateway | |
servers: | |
- port: | |
number: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: VirtualService | |
metadata: | |
name: sa-external-services | |
spec: | |
hosts: | |
- "*" | |
gateways: | |
- http-gateway # 1 | |
http: | |
- match: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: DestinationRule | |
metadata: | |
name: sa-frontend | |
spec: | |
host: sa-frontend | |
trafficPolicy: | |
loadBalancer: | |
consistentHash: | |
httpHeaderName: version # 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: DestinationRule | |
metadata: | |
name: sa-logic | |
spec: | |
host: sa-logic # 1 | |
subsets: | |
- name: v1 # 2 | |
labels: | |
version: v1 # 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: sa-logic | |
spec: | |
hosts: | |
- sa-logic | |
http: | |
- route: | |
- destination: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: sa-logic | |
spec: | |
hosts: | |
- sa-logic | |
http: | |
- route: | |
- destination: |