Skip to content

Instantly share code, notes, and snippets.

Abhishek Gupta abhirockzz

Block or report user

Report or block abhirockzz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View spec-snap.yaml
spec:
containers:
- name: kstreams-lower-to-upper
image: [REPLACE_ACR_NAME].azurecr.io/kstreams-lower-to-upper:v1
env:
- name: KAFKA_BROKER
value: [to be filled]
View kin-config-ennvar-json.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: config3
data:
appconfig.json: |
{
"array": [
1,
2,
View deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: kin-stateless-depl
spec:
replicas: 2
selector:
matchLabels:
app: kin-stateless-depl
template:
View rs.yaml
apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: kin-stateless-rs
spec:
replicas: 2
selector:
matchLabels:
app: kin-stateless-rs
template:
View simplepod.yaml
apiVersion: v1
kind: Pod
metadata:
name: kin-stateless-1
spec:
containers:
- name: nginx
image: nginx
View deployment-with-config-in-volume.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: testapp
spec:
selector:
matchLabels:
app: testapp
replicas: 1
template:
@abhirockzz
abhirockzz / env-from.yaml
Last active Aug 6, 2019
using envVar in pod spec
View env-from.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: config2
data:
FOO_ENV: bar
HELLO_ENV: world
---
apiVersion: v1
kind: Pod
@abhirockzz
abhirockzz / example.yaml
Last active Aug 5, 2019
simple config map with pod using the its data
View example.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: simpleconfig
data:
foo: bar
hello: world
---
apiVersion: v1
kind: Pod
@abhirockzz
abhirockzz / pod2.yaml
Created Aug 5, 2019
pod using env vars from config map
View pod2.yaml
apiVersion: v1
kind: Pod
metadata:
name: pod2
spec:
containers:
- name: nginx
image: nginx
env:
- name: FOO_ENV_VAR
View pod-using-raw-env-vars.yaml
apiVersion: v1
kind: Pod
metadata:
name: pod1
spec:
containers:
- name: nginx
image: nginx
env:
- name: ENVVAR1
You can’t perform that action at this time.