Граф коммитов

136 Коммитов

Автор SHA1 Сообщение Дата
Justin Kotalik 53a1ac81a4 0.2 to 0.3 2020-06-18 16:33:33 -07:00
Raz Friman c016f38ce0
Seq Extension (#513) 2020-06-12 18:44:42 -07:00
areller a7eae8f3ef
using the ASP.NET Core HealthChecks library for the liveness/readiness sample (#523)
* changing sample project to use microsoft health checks library

* update probes recipe

* Update probes.md

* changing probes doc

* give more description in '/' of sample service
2020-06-11 17:30:08 -07:00
Justin Kotalik e7cb54b801
Adds --watch as an option for tye run (#526) 2020-06-08 15:59:55 -07:00
Nilesh Gule a89d550917
Updated the reference to undeploy markdown file (#520) 2020-05-30 15:32:36 -07:00
areller e23a6506e9
Liveness and Readiness Documentation, Samples and Small Changes (#502)
* sample app and beggining of recipe

* fix link

* sample, recipe and schema docs

* change http failures to debug logs

* add model validation to probes and http prober

* add deserialization and validation tests

* license

* format

* PR fixes

* remove some Console.WriteLine's
2020-05-29 11:29:49 -07:00
areller ea43a55382
log verbosity in tye run (#506)
* tye run log verbosity

* formatting
2020-05-27 10:22:36 -07:00
Max 65c09d737e
Docs: Updated Container Registry Server example (#500)
Azure Container Registry Login Server is usually the registry name combined with `azurecr.io`.
2020-05-23 12:24:42 -07:00
Shayne Boyer 87cd4f4087
Docs for specifying base image:tag (#475) 2020-05-18 11:00:33 -07:00
ArieJones d6c8dc2504
Update dapr.md for small typo (#483)
Small typo in command produces error
2020-05-18 08:22:37 -07:00
Justin Kotalik ef441e8704
Tye should validate that service names are valid DNS names (#480) 2020-05-15 15:45:49 -07:00
Giovanni Bassi 204d4ce8e4
Update run locally docs to use v0.2 (#465) 2020-05-10 21:44:53 -07:00
Justin Kotalik fcc0d4877f
Update getting_started.md 2020-05-08 11:28:03 -07:00
Justin Kotalik c572db892b Fix reference links 2020-05-08 11:26:29 -07:00
Justin Kotalik 719d0e9d05 Update README.md 2020-05-08 11:26:29 -07:00
Justin Kotalik 2ee1d569a0 Update README.md 2020-05-08 11:26:29 -07:00
Justin Kotalik b2968cdca1 Update schema docs (#458) 2020-05-08 11:26:29 -07:00
Justin Kotalik ba77a12899 Mention undeploy in tutorial (#457) 2020-05-08 11:26:29 -07:00
Ryan Nowak 40b1ad24ee Remove disclaimers about 0.2 2020-05-08 11:26:29 -07:00
Ryan Nowak 8dbb3ca145 Add ingress to docs
Fixes: #336
2020-05-08 11:26:29 -07:00
Ryan Nowak baad3fc461 Add docker network to docs 2020-05-08 11:26:29 -07:00
Ryan Nowak 14c49290c6 Update command docs
Fixes: #387
2020-05-08 11:26:29 -07:00
Ryan Nowak ec2d15754f Update service discovery doc tell the truth
Fixes: #344
2020-05-08 11:26:29 -07:00
Justin Kotalik 70ecd6f582 Add multi-repo documentation updates 2020-05-08 11:26:29 -07:00
Ryan Nowak baf3e55daf Add documentation for namespace
Fixes: #416
2020-05-08 11:26:29 -07:00
Ryan Nowak db464d0822 Add recipe for Elastic stack (ELK) 2020-05-04 12:41:56 -07:00
Ryan Nowak c6bb9dafdf Add docs 2020-05-03 12:20:08 -07:00
Ryan Nowak 5ab6d46160 Add a diagnostics sidecar 2020-05-03 12:20:08 -07:00
Ryan Nowak aa305c3df2 Add recipe 2020-05-02 11:22:44 -07:00
Ryan Nowak 4389d3add6 React to some feed changes 2020-04-30 19:28:22 -07:00
Ryan Nowak 9e2c7f474c Add proviso about minikube ingress 2020-04-26 15:33:52 -07:00
Ryan Nowak 9e2647dfdf Add doc 2020-04-26 15:29:05 -07:00
Brendan Burns f4e31c1eb9 Improve docs somewhat. 2020-04-24 17:33:11 -07:00
Justin Kotalik 73a28973a6
Fixups for redis tutorial (#393) 2020-04-21 10:43:34 -07:00
Ryan Nowak 1178d1d9e1
Implement undeploy command (#385)
This is new command that can be used to delete everything running in a
cluster related to an application using the labels we use.

This currently uses a hardcoded set of resource types. It would be
possible to make this generic, which might become needed in the future.
See comments in the code.

---

The overall design for how to use the command:

```sh
tye undeploy
```

Will read a solution or tye.yaml to get the application name. It then
enumerates and deletes all resources in the cluster with
`app.kubernetes.io/part-of=application-name` (in the current namespace).

```sh
tye undeploy --what-if
```

Will do the same, but without actually doing the deletion.

```sh
tye undeploy -i
```

Will interactively give you a yes/no choice for whether to delete each
resource.
2020-04-21 10:22:06 -07:00
Justin Kotalik 2d3c9b8abb
Doc fix for tye run. 2020-04-16 11:28:34 -07:00
Justin Kotalik 1c3e83a02b
Add registry name to redis yaml (#370) 2020-04-15 15:19:33 -07:00
Justin Kotalik 11289dbf42
Tye deploy nit (#369) 2020-04-15 12:39:05 -07:00
Justin Kotalik 7b916382fd
Tye run documentation nits (#368) 2020-04-15 12:29:44 -07:00
TeBeCo a55639072e
Align "project" and "name" nodes in 01_deploy.md of the default tye.yaml (#357) 2020-04-12 08:56:27 -07:00
Pure Krome fac2fa19e0
💄 Fixed typo. (#346) 2020-04-10 08:08:26 -07:00
Ryan Nowak fc52202202
Update getting_started.md
Update getting started with new version numbers for CI Builds
2020-04-09 22:45:40 -07:00
sambeckingham ba761e3585
Update link to redis manifest (#343)
Looks like the example redis deployment got moved to another part of the repo.
2020-04-09 21:53:36 -07:00
Ryan Nowak 7d2fb0818e Add instructions for released bits 2020-04-09 19:14:21 -07:00
Justin Kotalik 5f15d8f837
Deployment docs (#332) 2020-04-09 17:50:28 -07:00
Ryan Nowak 731fe665c2 Add an FAQ 2020-04-09 16:39:36 -07:00
Ryan Nowak d7a4b0327e Add some local development docs 2020-04-09 15:47:30 -07:00
Ryan Nowak dc2bf37b2a update versions in getting started 2020-04-09 13:03:33 -07:00
Thijs Brobbel 9605d34978
Fix broken link to Tutorial 02 (Basic Tutorial (deploy)) (#331) 2020-04-09 07:13:37 -07:00
Ryan Nowak 3f994be2fd Move other stuff to reference folder 2020-04-08 17:00:02 -07:00
Ryan Nowak 75647ff506 Move and number tutorial 2020-04-08 17:00:02 -07:00
Ryan Nowak 3a5a991f33 Create reference folder and move commandline 2020-04-08 17:00:02 -07:00
David Fowler 84bb3bf488
Use environment variables for secrets in prod (#315)
* Use environment variables for secrets
- Updating in place does not apply to connection strings specifically since they are usually configured at startup as singletons.
- This brings consistency with the development experience.
- Gets rid of AddTyeBindings
- "Less secure", sure but to be pedantic env variables are stored in virtual file on disk while the process is running. I'd argue if you want full security then use keyvault/vault/name your secret store.

Fixes #313

* Removed the last AddTyeSecrets call
2020-04-08 13:45:40 -07:00
Ryan Nowak 4307dc7ad3 Update schema and docs to describe name as optional
Fixes: #316
2020-04-08 13:20:21 -07:00
Ryan Nowak 083a97f353
Implement library support for service discovery (#299)
Implements two flavor of library support for service-discovery:

- GetConnectionString (arbitrary strings) augmenting existing
  functionality already in asp.net core
- GetServiceUri (uris) can be combined
  from a protocol/host/port triple

See the **extensive** doc `service_discovery.md` that is filled out in this PR. That documents pretty much everything about how this works now.
2020-04-07 15:28:39 -07:00
Stafford Williams 3418e4db0d
docs: typo (#300) 2020-04-06 07:44:34 -07:00
David Fowler f0bb659794
Update schema.md 2020-04-02 21:59:04 -07:00
David Fowler 9873e05f2f
Put k3s last 2020-04-02 17:04:25 -07:00
Ryan Nowak 6671da72c0 Add a library for `AddTyeSecrets`
This removes the need to copy-paste code that reads a specific directory
in Program.cs.

Updated docs/samples and tests.

We need a workaround in tests to be able to use a P2P for the library. What
I did here is the same trick we do in Razor.

- Force everyone to use an MSBuild variable to locate the library
- Set that variable in a Directory.Build.props for the normal build
- Drop a special Directory.Build.props for testing

Updates a bunch of test code to use new helper methods for copying
stuff, so we can correctly do this.
2020-04-01 19:15:05 -07:00
Ryan Nowak 32a3c8ec57
Adds update instructions to getting_started (#286)
* Adds update instructions to getting_started

* Update getting_started.md
2020-04-01 10:35:10 -07:00
David Fowler 69118b7890
Add support for container networking (#278)
* Add support for container networking
- This adds all containers in the tye.yaml to the same container network.
- Container networking only works with a single replica today since the containers are named after their replicas.
- Use the container host name and port when injecting env variables. This handles the replica case by falling back to the host ip and port.
- This cleans up container to container communication when migrating docker-compose files.
- Don't override assign container port if already set.
- Remove StopAsync from TyeHost and exposed DisposeAsync. This patterns removes common clean up and hanging issues that occur.
- Cleaned up run tests to use similar code to run, clean up and capture logs.

* Move where we handle errors while shutting down the host

* Fixed project -> container networking issue
- Only use service name as the host name if both target and source re containers

* Formatting...

* Add service definition to the logs

* Added env variables to disable console colors for process run

* Hit the backend before the frontend

* Small cleanup
- Update docs to use host name for redis cli
- Show docker network and network alias in the API
2020-04-01 09:26:06 -07:00
Justin Kotalik 2845903be7
Remove dockerImage from schema example. 2020-03-31 10:59:54 -07:00
Ryan Nowak 08a7384352
Add Dapr integration to Tye (#250)
* Add Dapr integration to Tye

Adds a new `extensions` integration point. Currently all extensbility has
to be inside the Tye codebase. There's no functionality for loading or distributing
plugins.

Enable dapr for an application like:

```yaml
name: test_app
extensions:
- name: dapr
```

The dapr extension currently accepts and requires no additional options, and applies
to all services defined in the application.

What it does:

- In local run: starts a dapr sidecar for each project that does http
- In local run: sidecars start in the directory of tye.yaml, so dapr will look for
  component manifests in ./components (relative to tye.yaml
- In deployment: adds required annotations to deployments

Some new features that were added to tye to enable this:

- Config: Ability to parse and conditionally run extensions
- Run: Ability to token replace env-vars into command line args
- Deploy: Ability to configure labels and annotations

* format

* Massage labesl:

* PR feedback

* Fix tests
2020-03-29 21:55:45 -07:00
Justin Kotalik acd6b5d723
Change version in getting_started for tye (#213)
- Fixes schema from dockerImage to image
2020-03-26 12:32:05 -07:00
David Fowler c65a21f81c
Rename internalPort to containerPort (#182)
- Updated the docs
2020-03-23 21:51:54 -07:00
Justin Kotalik c33e37bf74
Allow debugging specific projects (#163) 2020-03-22 13:51:55 -07:00
David Fowler ebfae55f99
Renamed dockerImage to image (#160)
* Renamed dockerImage to image
- Added a new image field and marked dockerImage as deprecated. Will remove in a future version.
- Fixes #122

* Removed dockerImage support

* Added dockerImage back to the docs
2020-03-20 11:05:00 -07:00
David Fowler 25dfa1443b
Add basic docs for volumes (#158) 2020-03-20 10:33:23 -07:00
Chad Jessup 0cff10ec76
States we're already in containers, when we're not (#142) 2020-03-19 12:58:00 -07:00
ericsampson feac07eb9c
Add link to K3s (#147) 2020-03-19 10:08:39 -07:00
Chad Jessup f7ae86711a
Making 'tye run' explicit at end of instructions (#140) 2020-03-18 22:48:10 -07:00
David Gardiner 28496837b4
Fix minor typos (#139) 2020-03-18 22:37:16 -07:00
Ryan Nowak cc6d88b3cf Update getting started to point at a real build. 2020-03-18 18:15:54 -07:00
Ryan Nowak 9a72790965 Add docs for schema 2020-03-18 16:34:03 -07:00
Ryan Nowak 5f0a3142f4 Remove access token from redis docs
This is no longer needed now that we're not public.
2020-03-18 16:33:38 -07:00
Ryan Nowak dae4b4534b Warn people from trying to use tye right now 2020-03-18 15:31:08 -07:00
Pascal Berger 8bbed3e3a1 Fix typo in link 2020-03-18 15:25:45 -07:00
Loïc Sharma 93615fa160 Fix formatting issues in docs 2020-03-18 12:44:18 -07:00
Justin Kotalik cc86eb7563
Docs for tye commands (#114)
Adds docs for
- tye init
- tye run
- tye deploy

Somewhat follows the style of docs for dotnet commands.
2020-03-16 18:56:56 -07:00
Justin Kotalik 7e9cbe2ed1
Update frontend_backend_deploy.md 2020-03-16 08:49:10 -07:00
Ryan Nowak 0b1838207f Updates to tutorial 2020-03-14 23:56:59 -07:00
Justin Kotalik 6447f021d3
Add table of contents, refactor to have getting started and redis separated. (#107) 2020-03-13 14:48:18 -07:00
Justin Kotalik 183eea27c4
Add a higher level doc for getting started. (#102) 2020-03-12 22:31:55 -07:00
Justin Kotalik aee16fa991
Add Getting Started document(#93)
This adds a basic tutorial for getting started with tye.

There are a few gaps we need to follow on, specifically:
- Organization of documents
- Content of tye deploy instructions
- Any follow up tutorials
2020-03-12 15:10:34 -07:00
Ryan Nowak 9f00db359e add developer instructions 2020-03-09 20:23:07 -07:00
Ryan Nowak 40aaefb281 Update readme and stuff 2020-03-09 11:27:09 -07:00