Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
---
apiVersion: "v1"
kind: "List"
items:
- apiVersion: "v1"
kind: "ServiceAccount"
metadata:
labels:
app: "bestseller-toys"
version: "1.0-SNAPSHOT"
group: "ryanjbaxter"
name: "bestseller-toys"
- apiVersion: "rbac.authorization.k8s.io/v1"
kind: "RoleBinding"
metadata:
labels:
app: "bestseller-toys"
version: "1.0-SNAPSHOT"
group: "ryanjbaxter"
name: "bestseller-toys:view"
roleRef:
name: "view"
subjects:
- kind: "ServiceAccount"
name: "bestseller-toys"
- apiVersion: "apps/v1"
kind: "Deployment"
metadata:
labels:
app: "bestseller-toys"
version: "1.0-SNAPSHOT"
group: "ryanjbaxter"
name: "bestseller-toys"
spec:
replicas: 1
selector:
matchLabels:
app: "bestseller-toys"
version: "1.0-SNAPSHOT"
group: "ryanjbaxter"
template:
metadata:
labels:
app: "bestseller-toys"
version: "1.0-SNAPSHOT"
group: "ryanjbaxter"
spec:
containers:
- env:
- name: "KUBERNETES_NAMESPACE"
valueFrom:
fieldRef:
fieldPath: "metadata.namespace"
image: "ryanjbaxter/bestseller-toys:1.0-SNAPSHOT"
imagePullPolicy: "IfNotPresent"
name: "bestseller-toys"
serviceAccount: "bestseller-toys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.