Skip to content

Commit 5f9c27e

Browse files
committed
Moving includes to inline
1 parent b1e56cc commit 5f9c27e

File tree

5 files changed

+148
-143
lines changed

5 files changed

+148
-143
lines changed

articles/aks/configure-kubenet-dual-stack.md

Lines changed: 148 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,101 @@ Deploying a dual-stack cluster requires passing the `--ip-families` parameter wi
110110
111111
When using an Azure Resource Manager template to deploy, pass `["IPv4", "IPv6"]` to the `ipFamilies` parameter to the `networkProfile` object. See the [Azure Resource Manager template documentation][deploy-arm-template] for help with deploying this template, if needed.
112112
113-
:::code language="json" source="includes/configure-kubenet-dual-stack/aksipv6.json" highlight="47-50":::
113+
```json
114+
{
115+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
116+
"contentVersion": "1.0.0.0",
117+
"parameters": {
118+
"clusterName": {
119+
"type": "string",
120+
"defaultValue": "aksdualstack"
121+
},
122+
"location": {
123+
"type": "string",
124+
"defaultValue": "[resourceGroup().location]"
125+
},
126+
"kubernetesVersion": {
127+
"type": "string",
128+
"defaultValue": "1.22.2"
129+
},
130+
"nodeCount": {
131+
"type": "int",
132+
"defaultValue": 3
133+
},
134+
"nodeSize": {
135+
"type": "string",
136+
"defaultValue": "Standard_B2ms"
137+
}
138+
},
139+
"resources": [
140+
{
141+
"type": "Microsoft.ContainerService/managedClusters",
142+
"apiVersion": "2021-10-01",
143+
"name": "[parameters('clusterName')]",
144+
"location": "[parameters('location')]",
145+
"identity": {
146+
"type": "SystemAssigned"
147+
},
148+
"properties": {
149+
"agentPoolProfiles": [
150+
{
151+
"name": "nodepool1",
152+
"count": "[parameters('nodeCount')]",
153+
"mode": "System",
154+
"vmSize": "[parameters('nodeSize')]"
155+
}
156+
],
157+
"dnsPrefix": "[parameters('clusterName')]",
158+
"kubernetesVersion": "[parameters('kubernetesVersion')]",
159+
"networkProfile": {
160+
"ipFamilies": [
161+
"IPv4",
162+
"IPv6"
163+
]
164+
}
165+
}
166+
}
167+
]
168+
}
169+
```
114170

115171
# [Bicep](#tab/bicep)
116172

117173
When using a Bicep template to deploy, pass `["IPv4", "IPv6"]` to the `ipFamilies` parameter to the `networkProfile` object. See the [Bicep template documentation][deploy-bicep-template] for help with deploying this template, if needed.
118174

119-
:::code language="bicep" source="includes/configure-kubenet-dual-stack/aksipv6.bicep" highlight="25-28":::
175+
```bicep
176+
param clusterName string = 'aksdualstack'
177+
param location string = resourceGroup().location
178+
param kubernetesVersion string = '1.22.2'
179+
param nodeCount int = 3
180+
param nodeSize string = 'Standard_B2ms'
181+
182+
resource aksCluster 'Microsoft.ContainerService/managedClusters@2021-10-01' = {
183+
name: clusterName
184+
location: location
185+
identity: {
186+
type: 'SystemAssigned'
187+
}
188+
properties: {
189+
agentPoolProfiles: [
190+
{
191+
name: 'nodepool1'
192+
count: nodeCount
193+
mode: 'System'
194+
vmSize: nodeSize
195+
}
196+
]
197+
dnsPrefix: clusterName
198+
kubernetesVersion: kubernetesVersion
199+
networkProfile: {
200+
ipFamilies: [
201+
'IPv4'
202+
'IPv6'
203+
]
204+
}
205+
}
206+
}
207+
```
120208

121209
---
122210

@@ -157,7 +245,27 @@ kubectl create deployment nginx --image=nginx:latest --replicas=3
157245

158246
# [YAML](#tab/yaml)
159247

160-
:::code language="yaml" source="includes/configure-kubenet-dual-stack/nginx-deployment.yaml":::
248+
```yml
249+
apiVersion: apps/v1
250+
kind: Deployment
251+
metadata:
252+
labels:
253+
app: nginx
254+
name: nginx
255+
spec:
256+
replicas: 3
257+
selector:
258+
matchLabels:
259+
app: nginx
260+
template:
261+
metadata:
262+
labels:
263+
app: nginx
264+
spec:
265+
containers:
266+
- image: nginx:latest
267+
name: nginx
268+
```
161269
162270
---
163271
@@ -197,7 +305,43 @@ service/nginx-ipv6 exposed
197305

198306
# [YAML](#tab/yaml)
199307

200-
:::code language="yaml" source="includes/configure-kubenet-dual-stack/nginx-service.yaml":::
308+
```yml
309+
---
310+
apiVersion: v1
311+
kind: Service
312+
metadata:
313+
labels:
314+
app: nginx
315+
name: nginx-ipv4
316+
spec:
317+
externalTrafficPolicy: Local
318+
ports:
319+
- port: 80
320+
protocol: TCP
321+
targetPort: 80
322+
selector:
323+
app: nginx
324+
type: LoadBalancer
325+
---
326+
apiVersion: v1
327+
kind: Service
328+
metadata:
329+
labels:
330+
app: nginx
331+
name: nginx-ipv6
332+
spec:
333+
externalTrafficPolicy: Local
334+
ipFamilies:
335+
- IPv6
336+
ports:
337+
- port: 80
338+
protocol: TCP
339+
targetPort: 80
340+
selector:
341+
app: nginx
342+
type: LoadBalancer
343+
344+
```
201345

202346
---
203347

articles/aks/includes/configure-kubenet-dual-stack/aksipv6.bicep

Lines changed: 0 additions & 31 deletions
This file was deleted.

articles/aks/includes/configure-kubenet-dual-stack/aksipv6.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

articles/aks/includes/configure-kubenet-dual-stack/nginx-deployment.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

articles/aks/includes/configure-kubenet-dual-stack/nginx-service.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)