kubectl run curl-debug -n monitoring --generator=run-pod/v1 --image=radial/busyboxplus:curl -i --tty --rm
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
Questions are not from any actual exam!!! | |
Q: Create a secret that has the following username password data: | |
username=missawesome | |
password=123kube321 | |
Create a pod running nginx that has access to those data items in a volume mount path at /tmp/secret-volume | |
log into the nginx pod you created and list the items and cat the output of the data items to a file "credentials.txt" |
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
Lesson 1 SUMMARY | |
1. The cursor is moved using either the arrow keys or the hjkl keys. | |
h (left) j (down) k (up) l (right) | |
2. To start Vim from the shell prompt type: vim FILENAME <ENTER> | |
3. To exit Vim type: <ESC> :q! <ENTER> to trash all changes. | |
OR type: <ESC> :wq <ENTER> to save the changes. |
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: nginx | |
labels: | |
env: test | |
spec: | |
containers: | |
- name: nginx | |
image: nginx |
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
#!/bin/bash | |
# WTF is eating my RAM | |
ps aux | awk '{print $6/1024 "MB\t\t" $11}' | sort -rn | head -10 |
There are two versions of Docker – Docker CE (Community Edition) and Docker EE (Enterprise Edition). If you have a small-scale project, or you’re just learning, you’ll want to use Docker CE.
In this gist, we will cover how to install Docker on Ubuntu 18.04.
- Ubuntu 18.04 64-bit operating system
- A user account with sudo privileges
- Command line / terminal (CTRL-ALT-T or Applications menu > Accessories > Terminal)
- Docker software repositories (optional)
-
Create an Windows Server 2016 instance with t3.medium atleast, 30 GB storage and ports -
80, 22, 53, 389, 3389, 443, 3268
open. -
Install
AD Domain Services
,AD Federation Services
andDotNet 3.5
. -
Promote current server as
Domain Controller
. -
Setup IIS for
https
binding withself-signed
certificate.
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: my-nginx | |
labels: | |
app: nginx | |
spec: | |
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
alias k="kubectl" | |
alias kc="kubectl create -f" | |
alias kaf="kubectl apply -f" | |
alias kdf="kubectl delete -f" | |
alias kg="kubectl get" | |
alias pods="kubectl get pods" | |
alias allpods="kubectl get pods --all-namespaces" | |
alias rcs="kubectl get rc" | |
alias pvs="kubectl get pv" | |
alias allpvs="kubectl get pv --all-namespaces" |