- Edit ReplicationController or ReplicaSet.
kubectl edit replicaset archetype
- Update Pod template to use a newer image.
#within the config modify the template image #confirm settings with kubectl get replicaset archetype -o yaml
function Add-AclAccessRule { | |
<# | |
.SYNOPSIS | |
Adds an access rule to an existing ACL on a folder or file. | |
.DESCRIPTION | |
Use .net methods to get the current ACL of the file or folder then generates a new rule | |
to which is added to the ACL of the file system object | |
.EXAMPLE | |
$splat = @{ | |
Path = 'C:\Logs' |
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | |
$sut = (Split-Path -Leaf $MyInvocation.MyCommand.Path) -replace '\.Tests\.', '.' | |
. "$here\$sut" | |
Describe "Add-ACLAccessRule Tests" { | |
New-Item -Name Logs -Path 'TestDrive:' -ItemType Directory | |
$application = 'DevOpsTest' |
function Enable-IISRemoteManagement { | |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[ValidateScript({ | |
if (-not (Test-Connection -ComputerName $_ -Quiet -Count 1)) { | |
throw "The computer [$_] could not be reached." | |
} else { | |
$true | |
}})] |
task . InstallDependencies, Analyze, Test, UpdateVersion, Clean, Archive | |
task InstallDependencies { | |
Install-Module Pester -Force | |
Install-Module PSScriptAnalyzer -Force | |
} | |
task Analyze { | |
$scriptAnalyzerParams = @{ | |
Path = "$BuildRoot\DSCClassResources\TeamCityAgent\" |
Resources: | |
Ec2Instance: | |
Type: AWS::EC2::Instance | |
Properties: | |
ImageId: ami-0a9ca0496f746e6e0 | |
InstanceType: t2.micro | |
Tags: | |
- Key: Name | |
Value: "WinTest01" | |
- Key: NameOfService |
kubectl edit replicaset archetype
#within the config modify the template image
#confirm settings with
kubectl get replicaset archetype -o yaml
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: archetype-deployment | |
labels: | |
app: archetype | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: |
kubectl apply -f archetype-deployment-and-service-recreate.yaml
kubectl set image deployment archetype-deployment archetype=duffney/archetype:v2
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: mysql-config | |
labels: | |
app: mysql | |
data: | |
mysql_binlog_format.cnf: | | |
[mysqld] | |
binlog-format=mixed |
code --install-extension 'wilfriedwoivre.arm-params-generator'; | |
code --install-extension 'bencoleman.armview'; | |
code --install-extension 'msazurermtools.azurerm-vscode-tools'; | |
code --install-extension 'samcogan.arm-snippets'; | |
code --install-extension 'ms-vscode.azure-account'; | |
code --install-extension 'ms-azuretools.vscode-azurefunctions'; | |
code --install-extension 'docsmsft.docs-markdown'; | |
code --install-extension 'docsmsft.docs-authoring-pack'; | |
code --install-extension 'ms-azure-devops.azure-pipelines'; |