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
| kubectl patch svc dbp-transaction-microservice --type='json' -p '[{"op":"replace","path":"/spec/type","value":"ClusterIP"}]' | |
| kubectl patch svc dbp-transaction-microservice -p '{"spec": {"type": "ClusterIP"}}' | |
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
| Reference: [https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/1629#issuecomment-726872539] | |
| I deleted the AWS Load Balancer Controller (alb) before deleting the ingress, and I couldn't delete the ingress. | |
| Solution: | |
| -> % k get ingress echoserver -o yaml | grep -A 5 finalizers | |
| finalizers: | |
| - group.ingress.k8s.aws/mygroup | |
| generation: 19 | |
| name: echoserver |
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
| docker image ls --format '{{json .}}' | jq '.Repository + ":" + .Tag' |
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
| aws ec2-instance-connect send-ssh-public-key --instance-id i-XXYYZZ --availability-zone eu-central-1c --instance-os-user ec2-user --ssh-public-key file:///home/foo/.ssh/id_rsa.pub --profile devops | |
| ssh ec2-user@PUBLIC_IP | |
| OR | |
| pip install ec2instanceconnectcli | |
| mssh ec2-user@i-XXYYZZ --profile devops | |
| ### |
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
| sudo pip3 install ec2instanceconnectcli | |
| mssh ec2-user@i-XXYYZZZ --profile devops | |
| msftp ec2-user@i-XXYYZZZ:/etc/fstab . --profile devops |
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
| kind: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: mi-service | |
| spec: | |
| type: ExternalName | |
| externalName: example.com |
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
| ## reference: https://www.youtube.com/watch?v=BaBKBy2vHmM | |
| git log -S accountSubType | |
| git log -S accountSubType -p | |
| ## search all branches | |
| git log -S accountSubType -p --all | |
| ## search recursively in .py files |
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
| jq -n --arg boss "$USER" '{"boss":$boss}' |
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
| ssh [email protected] sh -c "'cat >> .ssh/authorized_keys'" < /tmp/sami.pub | |
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
| /boot/ | |
| /etc/modules | |
| /etc/fstab | |
| /etc/mtab | |
| /etc/netplan/ | |
| /etc/network/ | |
| /etc/sysconfig/network-scripts/ | |
| /lib/modules | |
| lost+found/ | |
| /sys/ |