Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.31 KB

07042022.md

File metadata and controls

60 lines (42 loc) · 1.31 KB
  1. git credential-manager:
  • --system > --global > --local: (example)
git config --system -e
git config --system credential.helper manger-core/wincred
git config --system --unset-all credential.helper
  • We should add our credential informations for git:domain in the credential-mamnger window as the form below:
username: <Git-SCM username>
password: <your_access_token>
  1. where command in Windows: to indicate the location of a given binary file
where.exe minikube.exe
  1. Searching for matching string pattern on Windows:
  • Simple method:
echo $env:Path -match/-cmatch "<something>
  • Intermediate/old school method:
dir /-D | findstr /I /C:"<something>
  • Advance/modern Powershell script:
Get-ChildItem -Recurse | Select-String "<something>" -List | Select Path
  1. The comparision about port exposion in Dockerfile versus k8s-template.yml:
  • The first 8080 is the local machine port was used for running the container (instance of an image).
  • The second one 8080/TCP is a public port exposed for all of these connected nodes in the network.
EXPOSE 8080 8080

corresponded with this expose command in the k8s-template.yml looks like:

service:
  type: ClusterIP
  port: 80
  targetPort: 8080