ifdef::env-github[]
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:
endif::[]
ifndef::env-github[]
endif::[]

[[examples-kubectl-default]]
== Kubectl Default
In this example you will use _ytt_ to template _kubernetes_
deployment files and push those to cluster with _kubectl_.

[source, bash]
----
ytt \
  -f config \
  -f docs/examples/kubectl-default/scdf-values.yml \
  | kubectl apply -f-
----

[IMPORTANT]
====
You need to run this command from a project root or fix
paths to `config` and `scdf-values.yml` depending on your
current working directory.
====

[NOTE]
====
As this is a low level deployment you may see servers restarting
if databases are not yet ready. Also as on default image locations
will point to _dockerhub_ you may get failures with rate limiting.
====

If running on a minikube you probably want `NodePort` exposed
for _dataflow_ server:

[source, bash]
----
ytt \
  -f config \
  -f docs/examples/kubectl-default/scdf-minikube-values.yml \
  | kubectl apply -f-
----
