first commit
This commit is contained in:
commit
c943e81b7b
14 changed files with 207 additions and 0 deletions
19
A3/base/deployment.yaml
Normal file
19
A3/base/deployment.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: A3
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: A3
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: A3
|
||||
spec:
|
||||
containers:
|
||||
- name: A3
|
||||
image: harbor.example.com/simple-demo/simple-demo:dev-placeholder
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
9
A3/base/kustomization.yaml
Normal file
9
A3/base/kustomization.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
|
||||
images:
|
||||
- name: harbor.example.com/simple-demo/simple-demo
|
||||
newTag: dev-placeholder
|
||||
13
A3/base/service.yaml
Normal file
13
A3/base/service.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: A3
|
||||
spec:
|
||||
selector:
|
||||
app: A3
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 3000
|
||||
protocol: TCP
|
||||
name: http
|
||||
type: ClusterIP
|
||||
13
A3/overlays/dev/certificate.yaml
Normal file
13
A3/overlays/dev/certificate.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: a3-dev-cert
|
||||
namespace: istio-system
|
||||
spec:
|
||||
secretName: a3-dev-cert
|
||||
issuerRef:
|
||||
name: letsencrypt-dns
|
||||
kind: ClusterIssuer
|
||||
dnsNames:
|
||||
- a3-dev.local.gwg313.xyz
|
||||
- a3-dev.gwg313.xyz
|
||||
12
A3/overlays/dev/kustomization.yaml
Normal file
12
A3/overlays/dev/kustomization.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: A3-dev
|
||||
bases:
|
||||
- ../../base
|
||||
resources:
|
||||
- gateway.yaml
|
||||
- virtualservice.yaml
|
||||
- certificate.yaml
|
||||
images:
|
||||
- name: registry.gwg313.xyz/private/a3-dev
|
||||
newTag: dev-placeholder
|
||||
20
A3/overlays/dev/virtualservice.yaml
Normal file
20
A3/overlays/dev/virtualservice.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: A3-dev
|
||||
namespace: a3
|
||||
spec:
|
||||
hosts:
|
||||
- a3-dev.gwg313.xyz
|
||||
- a3-dev.local.gwg313.xyz
|
||||
gateways:
|
||||
- a3-dev-gateway
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: a3-dev
|
||||
port:
|
||||
number: 80
|
||||
13
A3/overlays/prod/certificate.yaml
Normal file
13
A3/overlays/prod/certificate.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: a3-prod-cert
|
||||
namespace: istio-system
|
||||
spec:
|
||||
secretName: a3-prod-cert
|
||||
issuerRef:
|
||||
name: letsencrypt-dns
|
||||
kind: ClusterIssuer
|
||||
dnsNames:
|
||||
- a3-prod.local.gwg313.xyz
|
||||
- a3-prod.gwg313.xyz
|
||||
5
A3/overlays/prod/deployment-patch.yaml
Normal file
5
A3/overlays/prod/deployment-patch.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: a3
|
||||
namespace: a3-prod
|
||||
19
A3/overlays/prod/gateway.yaml
Normal file
19
A3/overlays/prod/gateway.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: prod-gateway
|
||||
namespace: a3-prod
|
||||
spec:
|
||||
selector:
|
||||
istio: gateway
|
||||
servers:
|
||||
- port:
|
||||
number: 443
|
||||
name: https
|
||||
protocol: HTTPS
|
||||
tls:
|
||||
mode: SIMPLE
|
||||
credentialName: a3-prod-tls-cert
|
||||
hosts:
|
||||
- a3-prod.gwg313.xyz
|
||||
- a3-prod.local.gwg313.xyz
|
||||
16
A3/overlays/prod/kustomization.yaml
Normal file
16
A3/overlays/prod/kustomization.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: A3-prod
|
||||
|
||||
bases:
|
||||
- ../../base
|
||||
|
||||
resources:
|
||||
- gateway.yaml
|
||||
- virtualservice.yaml
|
||||
- certificate.yaml
|
||||
|
||||
images:
|
||||
- name: harbor.example.com/simple-demo/simple-demo
|
||||
newTag: prod-placeholder
|
||||
|
||||
20
A3/overlays/prod/virtualservice.yaml
Normal file
20
A3/overlays/prod/virtualservice.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: A3-prod
|
||||
namespace: a3
|
||||
spec:
|
||||
hosts:
|
||||
- a3-prod.gwg313.xyz
|
||||
- a3-prod.local.gwg313.xyz
|
||||
gateways:
|
||||
- a3-prod-gateway
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: a3-prod
|
||||
port:
|
||||
number: 80
|
||||
13
A3/overlays/qa/certificate.yaml
Normal file
13
A3/overlays/qa/certificate.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: a3-qa-cert
|
||||
namespace: istio-system
|
||||
spec:
|
||||
secretName: a3-qa-cert
|
||||
issuerRef:
|
||||
name: letsencrypt-dns
|
||||
kind: ClusterIssuer
|
||||
dnsNames:
|
||||
- a3-qa.local.gwg313.xyz
|
||||
- a3-qa.gwg313.xyz
|
||||
15
A3/overlays/qa/kustomization.yaml
Normal file
15
A3/overlays/qa/kustomization.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: A3-qa
|
||||
|
||||
bases:
|
||||
- ../../base
|
||||
|
||||
resources:
|
||||
- gateway.yaml
|
||||
- virtualservice.yaml
|
||||
- certificate.yaml
|
||||
|
||||
images:
|
||||
- name: harbor.example.com/simple-demo/simple-demo
|
||||
newTag: qa-placeholder
|
||||
20
A3/overlays/qa/virtualservice.yaml
Normal file
20
A3/overlays/qa/virtualservice.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: A3-qa
|
||||
namespace: a3
|
||||
spec:
|
||||
hosts:
|
||||
- a3-qa.gwg313.xyz
|
||||
- a3-qa.local.gwg313.xyz
|
||||
gateways:
|
||||
- a3-qa-gateway
|
||||
http:
|
||||
- match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: a3-qa
|
||||
port:
|
||||
number: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue