This file contains hidden or 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
| param webAppName string = uniqueString(resourceGroup().id) // Generate unique String for web app name | |
| param sku string = 'S1' // The SKU of App Service Plan | |
| param linuxFxVersion string = 'php|7.4' // The runtime stack of web app | |
| param location string = resourceGroup().location // Location for all resources | |
| var appServicePlanName = toLower('AppServicePlan-${webAppName}') | |
| var webSiteName = toLower('wapp-${webAppName}') | |
| resource appServicePlan 'Microsoft.Web/serverfarms@2020-06-01' = { | |
| name: appServicePlanName |
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-kubelinter | |
| labels: | |
| app: nginx | |
| annotations: | |
| ignore-check.kube-linter.io/unset-cpu-requirements : "not required" | |
| ignore-check.kube-linter.io/unset-memory-requirements : "not required" | |
| spec: |
This file contains hidden or 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
| name: $(BuildDefinitionName)_$(date:yyyyMMdd)$(rev:.r) | |
| trigger: | |
| branches: | |
| include: | |
| - main | |
| pool: | |
| vmImage: 'ubuntu-latest' | |
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: deploy-best-practice | |
| namespace: kubelinter | |
| annotations: | |
| team: database | |
| spec: | |
| replicas: 1 | |
| minReadySeconds: 15 |
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-kubelinter | |
| labels: | |
| app: nginx | |
| spec: | |
| replicas: 3 | |
| selector: | |
| matchLabels: |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: sc-pod-restore | |
| labels: | |
| app: stg-restored | |
| spec: | |
| volumes: | |
| - name: htmlvol | |
| persistentVolumeClaim: |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: pvc-nginx-vol-restored | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| storageClassName: managed-csi | |
| resources: | |
| requests: |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: pvc-htmlvol | |
| spec: | |
| storageClassName: "default" | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: |
This file contains hidden or 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
| apiVersion: snapshot.storage.k8s.io/v1 | |
| kind: VolumeSnapshot | |
| metadata: | |
| name: nginx-vol-snapshot | |
| spec: | |
| volumeSnapshotClassName: csi-azuredisk-vsc | |
| source: | |
| persistentVolumeClaimName: pvc-htmlvol |
This file contains hidden or 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
| apiVersion: snapshot.storage.k8s.io/v1 | |
| kind: VolumeSnapshotClass | |
| metadata: | |
| name: csi-azuredisk-vsc | |
| driver: disk.csi.azure.com | |
| deletionPolicy: Delete | |
| parameters: | |
| incremental: "true" |