Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit e4e98a1

Browse files
andrebriggsbnookala
authored andcommitted
Update create.md
1 parent 8e4905a commit e4e98a1

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/commands/service/create.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
Add a new service into this initialized spk project repository.
44

5+
## Example
6+
7+
```bash
8+
spk service create . \
9+
--display-name $app_name \
10+
--helm-config-path $path_to_chart_in_repo \
11+
--helm-config-git $helm_repo_url \ # Needs to start with https and not contain user name
12+
--helm-config-branch master \
13+
--helm-chart-access-token-variable $ENV_VAR_NAME
14+
```
15+
516
## Note
617

718
- `--helm-chart-*` and `--helm-config-*` settings are exclusive. **You may only
@@ -10,13 +21,11 @@ Add a new service into this initialized spk project repository.
1021
repository, you can specify an environment variable in your
1122
HLD-to-Materialized pipeline containing your a PAT to authenticate with via
1223
the `--helm-chart-access-token-variable` option.
13-
- For more information, checkout the
14-
[git authentication guide](../../../guides/auth-private-helm-repos.md)
1524
- `--middlewares`, `--k8s-backend-port`, `--path-prefix`,
1625
`--path-prefix-major-version`, and `--k8s-backend` are all used to configure
1726
the generated Traefik2 IngressRoutes. ie.
1827
```sh
19-
spk service create my-example-documents-service
28+
spk service create my-example-documents-service \
2029
--middlewares middleware \
2130
--k8s-backend-port 3001 \
2231
--k8s-backend docs-service \

0 commit comments

Comments
 (0)