Giter VIP home page Giter VIP logo

devops-lab's People

Contributors

adamrushuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

devops-lab's Issues

Configure external-dns in AKS cluster

Evaluate using one of the following DNS providers:

  • AzureDNS
  • CloudFlare

https://github.com/kubernetes-sigs/external-dns

https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/azure.md

  • Test using Service Principle auth creds file.
  • Test using Managed Identity instead of Service Principle. Try AKS MI first.
  • Add separate DNS MI and aad-pod-identity binding. Must use userAssignedIdentityID as per workaround here: kubernetes-sigs/external-dns#1548 (comment)

Investigate Nexus API to automate initial configuration

Create a function app to power off AKS nodes (VMSS) outside of core dev hours 6-9am

I usually dev between 06:00 - 09:00, so would like the AKS nodes to be deallocated if I forget to do this manually.

  • Test PowerShell 7 func app worker: Azure/azure-functions-powershell-worker#371 (comment) - just add $env:FUNCTIONS_WORKER_RUNTIME_VERSION = '~7' when local, or add application setting FUNCTIONS_WORKER_RUNTIME_VERSION = '~7' for hosted function apps.
  • Run choco install azure-functions-core-tools-3 --params "'/x64'" for local testing.
  • Add support for UK time comparison
  • Add zip script and zip hash script to find replace token in TF var
  • Deallocate: mon-fri 06:00 - 09:00.
  • Deallocate: sat-sun 15:00 - 06:00.
  • Only notify (push notification to mobile) that AKS nodes running: sat-sun 15:00 - 06:00 https://www.dennisrye.com/post/twitchscanner/

Use locks or tags to skip prod VMs

https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-vs-code

Use config appsettings for Service Principal auth during local testing, and MSI once deployed. Azure/Azure-Functions#644 (comment)

Reference

Ansible configuration

Use Ansible and PowerShell 7 to do post deployment configuration via Nexus REST API.

API TODO

  • Test using result.json != none
  • /beta/security/users/{userId}/change-password
  • /beta/security/realms/active
  • /beta/repositories/docker/hosted

Add .devcontainer config for dev within containers

https://dev.to/cloudskills/using-containers-for-ansible-development-2n9n

Check what Jenkins agent docker image is used before building my own

https://www.google.com/search?q=vscode+docker+remote&rlz=1CDGOYI_enGB609GB609&oq=vscode.docker&aqs=chrome.2.69i57j0l3.4502j0j7&hl=en-GB&sourceid=chrome-mobile&ie=UTF-8

https://code.visualstudio.com/docs/remote/containers

Test mounted volume, sandbox, and attaching to running container (in AKS). Validate git and SSH connections. Use additional mount point for local .ssh folder.

https://code.visualstudio.com/docs/remote/containers-advanced#_developing-inside-a-container-on-a-remote-docker-host

https://aka.ms/vscode-remote/samples/kubernetes-helm

Add similar Dockerfile as used for building in Jenkins. Update to latest PowerShell and Az modules:

Install-Module Az.Accounts -Scope AllUsers -Acceptlicense -Force

Set bash autocomplete for kubectl and other CLIs

Cleanup repo

  • Search for and action TODO throughout code.
  • Remove old comments

Test terraform plan -detailed-exitcode

"Run after the first terraform apply, and viola. At least you are more confident that your code is idempotent any it does not create a new resource due to a random string or something within the code."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.