-
Print containers of a pod
oc get pod <pod_name> -o jsonpath='{.spec.containers[*].name}{"\n"}' | tr ' ' '\n'
-
IBM Chart repo URI
This file contains 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
== This is my first thought in github gist == | |
Can I use it as note keeper? May be even use it as a ASCIIDOC repo? |
This file contains 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
== Kubernetes Cluster == | |
- An abstraction that encapsulates containerised application | |
- The abstractions in Kubernetes allow you to deploy containerized applications to a cluster without tying them specifically to individual machines. | |
- A Kubernetes cluster consists of two types of resources | |
- The Master, coordinates the cluster | |
- Nodes are the workers that run applications |
This file contains 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
If your spring boot uses | |
'org.springframework.hateoas:spring-hateoas` | |
dependency, to enable HAL with | |
`@EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL)` | |
you'd also need |
This file contains 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
curl \ | |
--verbose \ | |
--request OPTIONS \ | |
http://localhost:3001/api/configuration/visitor \ | |
--header 'Origin: http://localhost:9292' \ | |
--header 'Access-Control-Request-Headers: Origin, Accept, Content-Type' \ | |
--header 'Access-Control-Request-Method: GET' | |
# http://nils-blum-oeste.net/cors-api-with-oauth2-authentication-using-rails-and-angularjs/#.UQJeLkp4ZyE |
This file contains 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
# Running web2.py accesible from host to a docker container | |
python web2py.py --nogui -a admin -i 0.0.0.0 | |
# display all users in ubuntu | |
compgen -u | |
This file contains 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
## Scenario | |
1. You have interactivelly gone back in time by `git rebase -i` | |
2. You have changed the commit | |
3. On continuing the rebase (with `git rebase --continue`), you will re-base the descentdant commits. | |
4. You get a conflict. | |
## What is the state? | |
You got a conflict rebasing a set of commits on your commit. The commit that is causing the conflict, is the "remote" |
This file contains 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
`oc get routes -o custom-columns=NAME:.metadata.name,HOST:.spec.host --all-namespaces` |
This file contains 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: cli | |
spec: | |
containers: | |
- name: cli | |
image: busybox | |
command: ["tail", "-f", "/dev/null"] | |
volumeMounts: |
OlderNewer