- Video 1
- Blog 1
- Creating ssh key and adding it to github - Github doc
- Modifying existing commit author
- By default all github related actions are connected to my work account
| FROM node:18.12.1-alpine | |
| COPY . . | |
| EXPOSE 3000 | |
| CMD ["node", "index.js"] |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-deployment # k8s deployment creates pods (instances of containers) and ensures the spec mentioned below is maintained (declarative) | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: nginx-app # container name - used for ensure replica count is always maintained | |
| replicas: 1 # no of pods to run | |
| template: |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: minimal-ingress | |
| annotations: | |
| kubernetes.io/ingress.class: nginx | |
| spec: | |
| ingressClassName: nginx | |
| rules: | |
| - http: |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: minimal-ingress | |
| annotations: | |
| nginx.ingress.kubernetes.io/rewrite-target: / | |
| spec: | |
| ingressClassName: nginx | |
| rules: | |
| - http: |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: nginx-deployment # k8s deployment creates pods (instances of containers) and ensures the spec mentioned below is maintained (declarative) | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: nginx-app # container name - used for ensure replica count is always maintained | |
| replicas: 1 # no of pods to run | |
| template: |
| FROM nginx:alpine | |
| # Expose port 80 | |
| EXPOSE 80 | |
| # Override index.html file | |
| # COPY index.html /usr/share/nginx/html | |
| # # Start NGINX | |
| CMD ["nginx", "-g", "daemon off;"] |
| <script> | |
| /* When the user scrolls down, hide the navbar. When the user scrolls up, show the navbar */ | |
| var prevScrollpos = window.pageYOffset; | |
| window.onscroll = function() { | |
| var currentScrollPos = window.pageYOffset; | |
| if (prevScrollpos > currentScrollPos) { | |
| document.querySelector("header").style.top = "0"; | |
| } else { | |
| document.querySelector("header").style.top = "-85px"; | |
| } |
| module.exports = { | |
| prefix: '', | |
| important: false, | |
| separator: ':', | |
| theme: { | |
| screens: { | |
| sm: '640px', | |
| md: '768px', | |
| lg: '1024px', | |
| xl: '1280px', |
| /* Margin */ | |
| /* Margin Top */ | |
| .mt-0{ | |
| margin-top: 0px !important; | |
| } | |
| .mt-1{ | |
| margin-top: 0.25rem !important; | |
| } |