forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the 'long running cluster' tests (istio#5895)
* Update the helm cluster to v2 * More files for the test env * Make script customizable
- Loading branch information
Showing
41 changed files
with
1,156 additions
and
515 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#/bin/bash | ||
|
||
|
||
|
||
function testIstioSystem() { | ||
pushd $TOP/src/istio.io/istio | ||
helm -n istio-system template \ | ||
--values tests/helm/values-istio-test.yaml \ | ||
--set global.refreshInterval=30s \ | ||
--set global.tag=$TAG \ | ||
--set global.hub=$HUB \ | ||
install/kubernetes/helm/istio | \ | ||
kubectl apply -n istio-system -f - | ||
popd | ||
} | ||
|
||
# Install istio | ||
function testInstall() { | ||
make istio-demo.yaml | ||
kubectl create ns istio-system | ||
testIstioSystem | ||
|
||
kubectl -n test apply -f samples/httpbin/httpbin.yaml | ||
|
||
kubectl create ns test | ||
kubectl label namespace test istio-injection=enabled | ||
|
||
kubectl create ns bookinfo | ||
kubectl label namespace bookinfo istio-injection=enabled | ||
kubectl -n bookinfo apply -f samples/bookinfo/kube/bookinfo.yaml | ||
} | ||
|
||
# Apply the helm template | ||
function testApply() { | ||
pushd $TOP/src/istio.io/istio | ||
helm -n test template tests/helm |kubectl -n test apply -f - | ||
popd | ||
} | ||
|
||
# Setup DNS entries - currently using gcloud | ||
# Requires DNS_PROJECT, DNS_DOMAIN and DNS_ZONE to be set | ||
# For example, DNS_DOMAIN can be istio.example.com and DNS_ZONE istiozone. | ||
# You need to either buy a domain from google or set the DNS to point to gcp. | ||
# Similar scripts can setup DNS using a different provider | ||
function testCreateDNS() { | ||
|
||
gcloud dns --project=$DNS_PROJECT record-sets transaction start --zone=$DNS_ZONE | ||
|
||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=grafana.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=prom.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=fortio2.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=pilot.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=fortio.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=fortioraw.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=bookinfo.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=httpbin.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=citadel.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
gcloud dns --project=$DNS_PROJECT record-sets transaction add ingress08.$DNS_DOMAIN --name=mixer.v08.$DNS_DOMAIN --ttl=300 --type=CNAME --zone=$DNS_ZONE | ||
|
||
gcloud dns --project=$DNS_PROJECT record-sets transaction execute --zone=$DNS_ZONE | ||
} | ||
|
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: badhealth | ||
labels: | ||
app: badhealth | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 8080 | ||
selector: | ||
app: badhealth | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: badhealth | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: badhealth | ||
version: v1 | ||
spec: | ||
containers: | ||
- name: app | ||
image: {{.Values.testHub}}/app:{{.Values.testTag}} | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- --port | ||
- "8080" | ||
- --port | ||
- "3333" | ||
- --version | ||
- "v1" | ||
ports: | ||
- containerPort: 8080 | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 3334 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 30 | ||
failureThreshold: 100 | ||
|
||
--- | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: badlive | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: badhealth | ||
version: v1 | ||
spec: | ||
containers: | ||
- name: app | ||
image: {{.Values.testHub}}/app:{{.Values.testTag}} | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- --port | ||
- "8080" | ||
- --port | ||
- "3333" | ||
- --version | ||
- "v1" | ||
ports: | ||
- containerPort: 8080 | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: 3334 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 30 | ||
failureThreshold: 100 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.