You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 13, 2020. It is now read-only.
Added the ability to specify a `--k8s-service-port` to `spk service create`.
This port will now be tracked in the users `bedrock.yaml` file and be injected
to the Traefik2 IngressRoutes created via `spk hld reconcile`.
closesmicrosoft/bedrock#818
Copy file name to clipboardExpand all lines: docs/service-management.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ Options:
50
50
--git-push SPK CLI will try to commit and push these changes to a new origin/branch named after the service. (default: false)
51
51
--variable-group-name <variable-group-name> The Azure DevOps Variable Group.
52
52
--middlewares <comma-delimitated-list-of-middleware-names> Traefik2 middlewares you wish to to be injected into your Traefik2 IngressRoutes (default: "")
53
+
--k8s-service-port <port> Kubernetes service port which this service is exposed with; will be used to configure Traefik2 IngressRoutes (default: "80")
"Traefik2 middlewares you wish to to be injected into your Traefik2 IngressRoutes",
86
86
""
87
87
)
88
+
.option(
89
+
"--k8s-service-port <port>",
90
+
"Kubernetes service port which this service is exposed with; will be used to configure Traefik2 IngressRoutes",
91
+
"80"
92
+
)
88
93
.action(async(serviceName,opts)=>{
89
94
constbedrock=awaitBedrockAsync().catch(err=>{
90
95
logger.warn(err);
91
96
returnundefined;
92
97
});
93
98
const{
94
99
displayName,
100
+
gitPush,
95
101
helmChartChart,
96
102
helmChartRepository,
97
103
helmConfigBranch,
98
-
helmConfigPath,
99
104
helmConfigGit,
100
-
packagesDir,
101
-
maintainerName,
105
+
helmConfigPath,
102
106
maintainerEmail,
107
+
maintainerName,
103
108
middlewares,
104
-
gitPush
109
+
packagesDir
105
110
}=opts;
111
+
constk8sPort=Number(opts.k8sServicePort);
106
112
constvariableGroupName=
107
113
opts.variableGroupName??(bedrock?.variableGroups??[])[0]??"";// fall back to bedrock.yaml when <variable-group-name> argument is not specified; default to empty string
0 commit comments