Skip to content

Commit 7dc0947

Browse files
committed
image center
Signed-off-by: HIMANSHU RAI <himanshuuu.2001@gmail.com>
1 parent a52f77c commit 7dc0947

2 files changed

Lines changed: 21 additions & 22 deletions

File tree

content-learn/mastering-meshery/introduction-to-meshery/meshery/deploying-meshery-designs.mdx

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ There are two modes on the Actions button:
6161
In this chapter, we focus on utilizing the first option to provide a comprehensive view of the deployment process.
6262

6363
<a href={action}>
64-
<img src={action} class="chapter-image" />
64+
<img src={action} class="chapter-image" style={{ margin: "0 auto" }}/>
6565
</a>
6666

6767
<h2 class="chapter-sub-heading">Design Validation</h2>
@@ -85,15 +85,15 @@ This comprehensive validation ensures that:
8585
1. Click on the **Validate** Icon.
8686

8787
<a href={performingValidation} >
88-
<img src={performingValidation} class="chapter-image" />
88+
<img src={performingValidation} class="chapter-image" style={{ margin: "0 auto" }}/>
8989
</a>
9090

9191
If the validation is successful, you will see a modal displaying the number of components validated and the number of annotations, similar to the one shown below:
9292

9393

9494

9595
<a href={successfulValidation} >
96-
<img src={successfulValidation} class="chapter-image" />
96+
<img src={successfulValidation} class="chapter-image" style={{ margin: "0 auto" }}/>
9797
</a>
9898

9999
<h3 class="chapter-sub-heading">Handling Validation Errors</h3>
@@ -107,7 +107,7 @@ A common validation error is:
107107
1. **Missing Required Field**: This happens when a required field is not provided. For example, in the image below, the first error indicates that the field ".spec.template.spec.containers.0.env.0" must have a value.
108108

109109
<a href={validationError} >
110-
<img src={validationError} class="chapter-image" />
110+
<img src={validationError} class="chapter-image" style={{ margin: "0 auto" }}/>
111111
</a>
112112

113113
To troubleshoot and remediate validation issues:
@@ -132,7 +132,7 @@ A dry run in Meshery simulates the deployment of your design in the selected tar
132132
1. Re-run the dry run to ensure all issues have been resolved.
133133

134134
<a href={successfulDryRun} >
135-
<img src={successfulDryRun} class="chapter-image" />
135+
<img src={successfulDryRun} class="chapter-image" style={{ margin: "0 auto" }}/>
136136
</a>
137137

138138
<h3 class="chapter-sub-heading">Examples of Dry Run Errors</h3>
@@ -146,21 +146,21 @@ Some examples of dry run errors are:
146146
</a>
147147

148148
<a href={drInvalidField2}>
149-
<img src={drInvalidField2} class="chapter-image" />
149+
<img src={drInvalidField2} class="chapter-image" style={{ margin: "0 auto" }}/>
150150
</a>
151151

152152
1. **Missing Required Field**
153153

154154
<a href={missingField}>
155-
<img src={missingField} class="chapter-image" />
155+
<img src={missingField} class="chapter-image" style={{ margin: "0 auto" }}/>
156156
</a>
157157

158158
1. **Missing Dependencies**: In this case, the error occurs because a Kubernetes [Custom Resource Definition](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) (CRD) should have been deployed first before attempting to deploy this component.
159159

160160
To resolve this, ensure that all necessary dependencies, such as CRDs, are deployed before deploying the components that rely on them.
161161

162162
<a href={missingResource}>
163-
<img src={missingResource} class="chapter-image" />
163+
<img src={missingResource} class="chapter-image" style={{ margin: "0 auto" }}/>
164164
</a>
165165

166166
<h2 class="chapter-sub-heading">Environment Selection</h2>
@@ -176,25 +176,25 @@ You can add an environment through the deployment modal by following these steps
176176
1. Click on **Add Environments**
177177

178178
<a href={addEnv}>
179-
<img src={addEnv} class="chapter-image" />
179+
<img src={addEnv} class="chapter-image" style={{ margin: "0 auto" }}/>
180180
</a>
181181

182182
1. Select **Create** and put in a name for the environment, _e.g.Development_, and **Save**.
183183

184184
<a href={createEnv}>
185-
<img src={createEnv} class="chapter-image" />
185+
<img src={createEnv} class="chapter-image" style={{ margin: "0 auto" }}/>
186186
</a>
187187

188188
1. After creating the environment you add connections to the environment, here we want to add a Kubernetes cluster. Click on the **arrows** icon to open the Development Resources modal.
189189

190190
<a href={assignConn}>
191-
<img src={assignConn} class="chapter-image" />
191+
<img src={assignConn} class="chapter-image" style={{ margin: "0 auto" }}/>
192192
</a>
193193

194194
**Available Connections** on the left side shows a list of Kubernetes clusters that are currently managed by Meshery.
195195

196196
<a href={kubeConn}>
197-
<img src={kubeConn} class="chapter-image" />
197+
<img src={kubeConn} class="chapter-image" style={{ margin: "0 auto" }}/>
198198
</a>
199199

200200

@@ -207,7 +207,7 @@ You can add an environment through the deployment modal by following these steps
207207
During the deployment, if a connection has not yet been added to your environment, it will appear as shown below.
208208

209209
<a href={missingCon}>
210-
<img src={missingCon} class="chapter-image" />
210+
<img src={missingCon} class="chapter-image" style={{ margin: "0 auto" }}/>
211211
</a>
212212

213213
In this scenario, to add a new environment.
@@ -234,15 +234,15 @@ The Kubernetes connection icon at the top right corner of the screen shows the l
234234
Clicking on the icon will invoke an ad hoc connectivity test between your Meshery Server and the specific Kubernetes cluster. Should this check fail, verify the health of your Meshery Operator deployment within that cluster.
235235

236236
<a href={connList}>
237-
<img src={connList} class="chapter-image" />
237+
<img src={connList} class="chapter-image" style={{ margin: "0 auto" }}/>
238238
</a>
239239

240240
<h3 class="chapter-sub-heading">Environment Error</h3>
241241

242242
If your environment is not properly set up before deployment, you may encounter the error below.
243243

244244
<a href={envError}>
245-
<img src={envError} class="chapter-image" />
245+
<img src={envError} class="chapter-image" style={{ margin: "0 auto" }}/>
246246
</a>
247247

248248
To handle this error follow the suitable steps for adding a connection to your environment as previously discussed.
@@ -278,21 +278,21 @@ You have the option of using the live cluster provided by Meshery Playground or
278278
1. Click **Finish**.
279279

280280
<a href={successDeploy}>
281-
<img src={successDeploy} class="chapter-image" />
281+
<img src={successDeploy} class="chapter-image" style={{ margin: "0 auto" }}/>
282282
</a>
283283

284284
<h3 class="chapter-sub-heading">Deployment Errors</h3>
285285

286286
1. **Missing Namespace**: This error occurs when you attempt to create a Kubernetes resource without specifying a namespace. Kubernetes requires that all resources have an associated namespace.
287287

288288
<a href={missingNs}>
289-
<img src={missingNs} class="chapter-image" />
289+
<img src={missingNs} class="chapter-image" style={{ margin: "0 auto" }}/>
290290
</a>
291291

292292
1. **Empty Label Selector**: This error indicates an empty label selector.
293293

294294
<a href={emptyLs}>
295-
<img src={emptyLs} class="chapter-image" />
295+
<img src={emptyLs} class="chapter-image" style={{ margin: "0 auto" }}/>
296296
</a>
297297

298298
<h3 class="chapter-sub-heading">Troubleshooting Errors</h3>
@@ -306,7 +306,7 @@ For the comprehensive list of error codes refer to [Error Code Reference](https:
306306
If you encounter persistent issues, consider consulting the [Meshery Community forum](https://discuss.layer5.io/c/meshery/5).
307307

308308
<a href={errorCode}>
309-
<img src={errorCode} class="chapter-image" />
309+
<img src={errorCode} class="chapter-image" style={{ margin: "0 auto" }}/>
310310
</a>
311311

312312
<h3 class="chapter-sub-heading">Using the Notification Center for Troubleshooting</h3>
@@ -322,7 +322,7 @@ The Notification Center in Meshery helps manage events during the deployment pro
322322
1. Keeps a log of past notifications, allowing you to track and review previous errors and their resolutions.
323323

324324
<a href={notification}>
325-
<img src={notification} class="chapter-image" />
325+
<img src={notification} class="chapter-image" style={{ margin: "0 auto" }}/>
326326
</a>
327327

328328
<a href={notificationCenter}>
@@ -339,7 +339,7 @@ To undeploy the resources
339339
1. Click on the **Undeploy** icon.
340340

341341
<a href={undeploy}>
342-
<img src={undeploy} class="chapter-image" />
342+
<img src={undeploy} class="chapter-image" style={{ margin: "0 auto" }}/>
343343
</a>
344344

345345

src/components/Learn-Components/Chapters-Style/chapters.style.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const ChapterStyle = styled.div`
3434
width: 100%;
3535
height: auto;
3636
display: block;
37-
margin: 0 auto;
3837
3938
@media (max-width: 768px) {
4039
max-width: 100%;

0 commit comments

Comments
 (0)