Merge pull request #3175 from yanc0/fix-server-snippet-annotation-doc

Fix yaml indentation in annotations server-snippet doc
This commit is contained in:
k8s-ci-robot 2018-10-03 11:18:27 -07:00 committed by GitHub
commit 43b47304e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -295,15 +295,15 @@ kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/server-snippet: |
set $agentflag 0;
if ($http_user_agent ~* "(Mobile)" ){
set $agentflag 1;
}
if ( $agentflag = 1 ) {
return 301 https://m.example.com;
}
set $agentflag 0;
if ($http_user_agent ~* "(Mobile)" ){
set $agentflag 1;
}
if ( $agentflag = 1 ) {
return 301 https://m.example.com;
}
```
!!! attention