Skip to content

Commit 888d9b9

Browse files
committed
Fix formatting
1 parent f2297bd commit 888d9b9

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

articles/iot-operations/troubleshoot/known-issues.md

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -145,74 +145,74 @@ To work around this issue, use the following steps to update the **DaemonSet** s
145145
kubectl edit target solid-zebra-97r6jr7rw43vqv-ops-init-target -n azure-iot-operations
146146
```
147147
148-
1. Add the following environment variables to the configuration:
149-
150-
```yml
151-
- name: ASPNETCORE_URLS
152-
value: http://+8443
153-
- name: POD_IP
154-
valueFrom:
155-
fieldRef:
156-
fieldPath: "status.podIP"
157-
```
148+
1. Add the following environment variables to the `spec.components.aio-opc-asset-discovery.properties.resource.spec.template.spec.containers.env` configuration section:
149+
150+
```yml
151+
- name: ASPNETCORE_URLS
152+
value: http://+8443
153+
- name: POD_IP
154+
valueFrom:
155+
fieldRef:
156+
fieldPath: "status.podIP"
157+
```
158158
159159
1. Save your changes. The final specification looks like the following example:
160160
161-
```yml
162-
apiVersion: orchestrator.iotoperations.azure.com/v1
163-
kind: Target
164-
metadata:
165-
name: <cluster-name>-target
166-
namespace: azure-iot-operations
167-
spec:
168-
displayName: <cluster-name>-target
169-
scope: azure-iot-operations
170-
topologies:
171-
...
172-
version: 1.0.0.0
173-
components:
174-
...
175-
- name: aio-opc-asset-discovery
176-
type: yaml.k8s
177-
properties:
178-
resource:
179-
apiVersion: apps/v1
180-
kind: DaemonSet
181-
metadata:
182-
labels:
183-
app.kubernetes.io/part-of: aio
184-
name: aio-opc-asset-discovery
185-
spec:
186-
selector:
187-
matchLabels:
188-
name: aio-opc-asset-discovery
189-
template:
161+
```yml
162+
apiVersion: orchestrator.iotoperations.azure.com/v1
163+
kind: Target
164+
metadata:
165+
name: <cluster-name>-target
166+
namespace: azure-iot-operations
167+
spec:
168+
displayName: <cluster-name>-target
169+
scope: azure-iot-operations
170+
topologies:
171+
...
172+
version: 1.0.0.0
173+
components:
174+
...
175+
- name: aio-opc-asset-discovery
176+
type: yaml.k8s
177+
properties:
178+
resource:
179+
apiVersion: apps/v1
180+
kind: DaemonSet
190181
metadata:
191182
labels:
192183
app.kubernetes.io/part-of: aio
193-
name: aio-opc-asset-discovery
184+
name: aio-opc-asset-discovery
194185
spec:
195-
containers:
196-
- env:
197-
- name: ASPNETCORE_URLS
198-
value: http://+8443
199-
- name: POD_IP
200-
valueFrom:
201-
fieldRef:
202-
fieldPath: status.podIP
203-
- name: DISCOVERY_HANDLERS_DIRECTORY
204-
value: /var/lib/akri
205-
- name: AKRI_AGENT_REGISTRATION
206-
value: 'true'
207-
image: >-
208-
edgeappmodel.azurecr.io/opcuabroker/discovery-handler:0.4.0-preview.3
209-
imagePullPolicy: Always
186+
selector:
187+
matchLabels:
210188
name: aio-opc-asset-discovery
211-
ports: ...
212-
resources: ...
213-
volumeMounts: ...
214-
volumes: ...
215-
```
189+
template:
190+
metadata:
191+
labels:
192+
app.kubernetes.io/part-of: aio
193+
name: aio-opc-asset-discovery
194+
spec:
195+
containers:
196+
- env:
197+
- name: ASPNETCORE_URLS
198+
value: http://+8443
199+
- name: POD_IP
200+
valueFrom:
201+
fieldRef:
202+
fieldPath: status.podIP
203+
- name: DISCOVERY_HANDLERS_DIRECTORY
204+
value: /var/lib/akri
205+
- name: AKRI_AGENT_REGISTRATION
206+
value: 'true'
207+
image: >-
208+
edgeappmodel.azurecr.io/opcuabroker/discovery-handler:0.4.0-preview.3
209+
imagePullPolicy: Always
210+
name: aio-opc-asset-discovery
211+
ports: ...
212+
resources: ...
213+
volumeMounts: ...
214+
volumes: ...
215+
```
216216
217217
## Azure IoT Operations Preview portal
218218

0 commit comments

Comments
 (0)