implement mdx remote
This commit is contained in:
parent
e2c063fa0f
commit
eaaafd9dd4
|
@ -1,4 +1,3 @@
|
|||
NEXT_PUBLIC_ALGOLIA_APP_ID=YY0FFNI7MF
|
||||
NEXT_PUBLIC_ALGOLIA_INDEX=product_NOMAD
|
||||
NEXT_PUBLIC_ALGOLIA_SEARCH_ONLY_API_KEY=5037da4824714676226913c65e961ca0
|
||||
HASHI_ENV=production
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
HASHI_ENV=production
|
|
@ -1,4 +0,0 @@
|
|||
module.exports = {
|
||||
presets: ['next/babel'],
|
||||
plugins: ['import-glob-array'],
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
import Search from '@hashicorp/react-search'
|
||||
|
||||
export default function SearchBar() {
|
||||
return (
|
||||
<Search
|
||||
renderHitContent={({ hit, Highlight }) => (
|
||||
<>
|
||||
<span className="name">
|
||||
<Highlight attribute="page_title" hit={hit} tagName="span" />
|
||||
</span>
|
||||
<span className="description">
|
||||
<Highlight attribute="description" hit={hit} tagName="span" />
|
||||
</span>
|
||||
</>
|
||||
)}
|
||||
resolveHitLink={(hit) => ({
|
||||
href: {
|
||||
pathname: `/${transformIdtoUrl(hit.objectID)}`,
|
||||
},
|
||||
})}
|
||||
placeholder="Search Nomad documentation"
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
function transformIdtoUrl(id) {
|
||||
return id.replace(/\/index$/, '')
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
.g-search {
|
||||
width: calc(100% - 2rem);
|
||||
max-width: 600px;
|
||||
|
||||
& .c-hits .ais-Highlight-highlighted {
|
||||
background-color: #c1f1e0;
|
||||
}
|
||||
}
|
|
@ -19,7 +19,6 @@ The stream will be kept alive until the connection is closed.
|
|||
| ------ | ------------------ | ------------------ |
|
||||
| `GET` | `/v1/event/stream` | `application/json` |
|
||||
|
||||
|
||||
The table below shows this endpoint's [required ACLs](/api-docs#acls). Due to
|
||||
the nature of this endpoint individual topics require specific policies.
|
||||
|
||||
|
@ -55,21 +54,21 @@ by default, requiring a management token.
|
|||
`Deployment` events for a job redis. an additional topic
|
||||
`&topic=Deployment:web` would include deployment events for redis and web. To
|
||||
only subscribe to `Node` events a topic parameter of `?topic=Node` without a
|
||||
separator value would be used. `?topic=Node:*` is also valid.
|
||||
separator value would be used. `?topic=Node:*` is also valid.
|
||||
|
||||
### Event Topics
|
||||
|
||||
| Topic | Output |
|
||||
| ------------ | ------------------------------- |
|
||||
| ACLToken | ACLToken |
|
||||
| ACLPolicy | ACLPolicy |
|
||||
| ACLPolicy | Allocation (no job information) |
|
||||
| Allocation | Allocation (no job information) |
|
||||
| Job | Job |
|
||||
| Evaluation | Evaluation |
|
||||
| Deployment | Deployment |
|
||||
| Node | Node |
|
||||
| NodeDrain | Node |
|
||||
| Topic | Output |
|
||||
| ---------- | ------------------------------- |
|
||||
| ACLToken | ACLToken |
|
||||
| ACLPolicy | ACLPolicy |
|
||||
| ACLPolicy | Allocation (no job information) |
|
||||
| Allocation | Allocation (no job information) |
|
||||
| Job | Job |
|
||||
| Evaluation | Evaluation |
|
||||
| Deployment | Deployment |
|
||||
| Node | Node |
|
||||
| NodeDrain | Node |
|
||||
|
||||
### Event Types
|
||||
|
|
@ -204,8 +204,8 @@ The table below shows this endpoint's support for
|
|||
[blocking queries](/api-docs#blocking-queries) and
|
||||
[required ACLs](/api-docs#acls).
|
||||
|
||||
| Blocking Queries | ACL Required |
|
||||
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| Blocking Queries | ACL Required |
|
||||
| ---------------- | --------------------------------------------------------------------------------- |
|
||||
| `NO` | `namespace:submit-job` with `namespace:sentinel-override` if `PolicyOverride` set |
|
||||
|
||||
### Parameters
|
||||
|
@ -225,7 +225,7 @@ The table below shows this endpoint's support for
|
|||
|
||||
```json
|
||||
{
|
||||
"Apply": ["cb80a13d-20d8-fb05-db3f-4ea0fe667b1b"]
|
||||
"Apply": ["cb80a13d-20d8-fb05-db3f-4ea0fe667b1b"]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -252,9 +252,7 @@ $ curl \
|
|||
"JobID": "example",
|
||||
"JobModifyIndex": 51,
|
||||
"Namespace": "default",
|
||||
"Recommendations": [
|
||||
"cb80a13d-20d8-fb05-db3f-4ea0fe667b1b"
|
||||
],
|
||||
"Recommendations": ["cb80a13d-20d8-fb05-db3f-4ea0fe667b1b"],
|
||||
"Warnings": ""
|
||||
}
|
||||
]
|
||||
|
@ -325,7 +323,7 @@ The table below shows this endpoint's support for
|
|||
"Resource": "MemoryMB",
|
||||
"Value": 512,
|
||||
"Meta": {
|
||||
"nomad_policy_id": "c355d0ec-7aa1-2604-449d-4ec79c813d2c"
|
||||
"nomad_policy_id": "c355d0ec-7aa1-2604-449d-4ec79c813d2c"
|
||||
},
|
||||
"Stats": {
|
||||
"min": 2.6640625,
|
|
@ -364,7 +364,7 @@ The table below shows this endpoint's support for
|
|||
path.
|
||||
|
||||
- `node` `(string: <required>)`- The node to detach the volume from.
|
||||
This is specified as a query string parameter.
|
||||
This is specified as a query string parameter.
|
||||
|
||||
### Sample Request
|
||||
|
|
@ -12,6 +12,7 @@ target plugins support the `dry-run` policy config parameter which allows a poli
|
|||
to be evaluated, but will noop any suggested changes.
|
||||
|
||||
Below is a list of plugins you can use with the Nomad Autoscaler:
|
||||
|
||||
- [Nomad Task Group][nomad_task_group_target]
|
||||
- [Dynamic Application Sizing Nomad Task][das_task_target]
|
||||
- [AWS AutoScaling Group][aws_asg_target]
|
||||
|
@ -237,7 +238,6 @@ To use the Azure VMSS target plugin, the agent configuration needs to be populat
|
|||
with the appropriate target block. Authentication to the Azure API can be supplied
|
||||
in a number of ways.
|
||||
|
||||
|
||||
#### Virtual Machine Identities
|
||||
|
||||
When using [virtual machine identities][vm_identity] you will need to provide a
|
|
@ -33,7 +33,7 @@ nomad alloc fs [options] <allocation> <path>
|
|||
|
||||
This command accepts a single allocation ID (unless the `-job` flag is
|
||||
specified, in which case an allocation is chosen from the given job) and a
|
||||
path. The path is optional and relative to the root of the [allocation working
|
||||
path. The path is optional and relative to the root of the [allocation working
|
||||
directory].
|
||||
|
||||
When ACLs are enabled, this command requires a token with the `read-fs`,
|
|
@ -74,6 +74,7 @@ Evaluation ID: b754d6b3-8960-5652-60d8-d47df6eaed13
|
|||
```
|
||||
|
||||
Scale the job with ID "job1" and the task group "group1" to a count of 8:
|
||||
|
||||
```shell-session
|
||||
$ nomad job scale job1 group1 8
|
||||
==> Monitoring evaluation "529cc88e"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue