Text Blocks

Plain text block with html tag

$ kubectl get svc -n istio-system
NAME                     TYPE           CLUSTER-IP       EXTERNAL-IP     PORT(S)
grafana                  ClusterIP      172.21.211.123   <none>          3000/TCP
...

Bash text block with plain output

$ this is a text block
$ echo Foo \
Bar
Foo Bar

Bash text block with redirection

$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry

Bash text block with html tag

$ kubectl get svc -n istio-system
NAME                     TYPE           CLUSTER-IP       EXTERNAL-IP     PORT(S)
grafana                  ClusterIP      172.21.211.123   <none>          3000/TCP
...

Bash text block with yaml output and download name

$ kubectl -n istio-system get configmap istio-galley-configuration -o jsonpath='{.data}'
map[validatingwebhookconfiguration.yaml:apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
  name: istio-galley
  namespace: istio-system
  labels:
    app: istio-galley
    chart: galley-1.0.0
    release: istio
    heritage: Tiller
webhooks:
  - name: pilot.validation.istio.io
    clientConfig:
      service:
        name: istio-galley
        namespace: istio-system
        path: "/admitpilot"
      caBundle: ""
    rules:
      - operations:
      (... snip ...)

Bash text block with json output and download name

$ kubectl logs -n istio-system -l istio-mixer-type=telemetry -c mixer | grep \"instance\":\"newlog.logentry.istio-system\" | grep -v '"destination":"telemetry"' | grep -v '"destination":"pilot"' | grep -v '"destination":"policy"' | grep -v '"destination":"unknown"'
{"level":"warn","time":"2018-09-15T20:46:36.009801Z","instance":"newlog.logentry.istio-system","destination":"details","latency":"13.601485ms","responseCode":200,"responseSize":178,"source":"productpage","user":"unknown"}
{"level":"warn","time":"2018-09-15T20:46:36.026993Z","instance":"newlog.logentry.istio-system","destination":"reviews","latency":"919.482857ms","responseCode":200,"responseSize":295,"source":"productpage","user":"unknown"}
{"level":"warn","time":"2018-09-15T20:46:35.982761Z","instance":"newlog.logentry.istio-system","destination":"productpage","latency":"968.030256ms","responseCode":200,"responseSize":4415,"source":"istio-ingressgateway","user":"unknown"}

File-based text block

BEFORE

# $snippet SNIP1
This is chunk 1
on two lines
# $endsnippet

# $snippet SNIP2
This is chunk 2
# $endsnippet

# $snippet SNIP1
This is chunk 3
# $endsnippet

AFTER

File-based text block with snippet extraction and download name

This is chunk 2

File-based bash text block with download name

$ kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: httpbin
spec:
  hosts:
  - "*"
  gateways:
  - httpbin-gateway
  http:
  - match:
    - uri:
        prefix: /headers
    - uri:
        prefix: /status
    route:
    - destination:
        port:
          number: 8000
        host: httpbin
EOF

URL-based text block

Zip

URL-based text block with snippet extraction

Zip

URL-based text block with redirects

Zip

URL-based text block with @@ content

Zip

Very wide text block

Reeeeeaaaaaalllllllllly lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllong

Very tall text block

Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Was this information useful?
Do you have any suggestions for improvement?

Thanks for your feedback!