-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed guide based on sync with YoungBu and feedback.
Signed-off-by: jasonviviano <[email protected]>
- Loading branch information
1 parent
7a32bb1
commit 5fa516a
Showing
5 changed files
with
57 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
docs/content/guides/author-apps/kubernetes/howto-yaml-base-support/snippets/app.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import radius as radius | ||
|
||
@description('The app ID of your Radius Application. Set automatically by the rad CLI.') | ||
param application string | ||
|
||
//CONTAINER | ||
@description('Loads the Kubernetes base manifest file and turns content into a string.') | ||
var manifest = loadTextContent('./manifest.yaml') | ||
|
||
resource container 'Applications.Core/containers@2023-10-01-preview' = { | ||
// Name must match with `ServiceAccount`, `Deployment`, and `Service` objects | ||
name: 'my-microservice' | ||
properties: { | ||
application: application | ||
container: { | ||
// Points to your container image | ||
image: 'ghcr.io/radius-project/samples/demo:latest' | ||
} | ||
connections: {} | ||
runtimes: { | ||
kubernetes: { | ||
base: manifest | ||
} | ||
} | ||
} | ||
} | ||
//CONTAINER |
43 changes: 0 additions & 43 deletions
43
...content/guides/author-apps/kubernetes/howto-yaml-base-support/snippets/basemanifest.bicep
This file was deleted.
Oops, something went wrong.
54 changes: 0 additions & 54 deletions
54
.../content/guides/author-apps/kubernetes/howto-yaml-base-support/snippets/basemanifest.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
docs/content/guides/author-apps/kubernetes/howto-yaml-base-support/snippets/manifest.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: my-microservice # Required for Radius validation | ||
labels: | ||
app: my-microservice # Radius will perform a synthetic validation but a hard requirement | ||
spec: | ||
selector: | ||
template: | ||
spec: | ||
containers: | ||
- name: my-microservice |