View secretenv.yaml
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: example-secret | |
spec: | |
containers: | |
- name: example-container | |
image: nginx | |
env: | |
- name: SECRET |
View secretsmount.yaml
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: example-secret | |
spec: | |
containers: | |
- name: example-container | |
image: nginx | |
volumeMounts: | |
# name must match the volume name below |
View secretcreate.yaml
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: Secret | |
metadata: | |
name: mysecret | |
type: Opaque | |
data: | |
username: YWRtaW4= | |
password: MWYyZDFlMmU2N2Rm |
View mountcm.yaml
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: configmap-demo-pod | |
spec: | |
containers: | |
- name: demo | |
image: alpine | |
command: ["sleep", "3600"] | |
volumeMounts: |
View cmload.yaml
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: configmap-example-pod | |
spec: | |
containers: | |
- name: example-container | |
image: alpine | |
command: ["sleep", "3600"] | |
env: |
View cmcreate.yaml
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: ConfigMap | |
metadata: | |
name: example-config | |
data: | |
# property-like keys; each key maps to a simple value | |
"license": "XXXX" | |
"licensedto": "dummy" | |
# file-like keys |
View liveness-tcp.yaml
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: goproxy | |
labels: | |
app: goproxy | |
spec: | |
containers: | |
- name: goproxy | |
image: k8s.gcr.io/goproxy:0.1 |
View liveness-http.yaml
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: | |
labels: | |
test: liveness | |
name: live-http | |
spec: | |
containers: | |
- name: liveness | |
image: k8s.gcr.io/liveness |
View liveness-exec.yaml
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: | |
labels: | |
test: liveness | |
name: live-exec | |
spec: | |
containers: | |
- name: liveness | |
image: k8s.gcr.io/busybox |
View goflags_output.sh
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
BoolFlag is not passed !!! | |
Boolean Flag is false | |
String Flag is Hello There! | |
Int Flag is 4 |
NewerOlder