mirror of
https://github.com/BretFisher/shpod.git
synced 2026-05-20 16:33:05 +00:00
Remove `imagePullPolicy`; it will default to `Always` since we're using the `:latest` tag.
42 lines
677 B
YAML
42 lines
677 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: shpod
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: shpod
|
|
namespace: shpod
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: shpod
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: cluster-admin
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: shpod
|
|
namespace: shpod
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: shpod
|
|
namespace: shpod
|
|
spec:
|
|
serviceAccountName: shpod
|
|
containers:
|
|
- name: shpod
|
|
image: jpetazzo/shpod
|
|
stdin: true
|
|
tty: true
|
|
env:
|
|
- name: HOSTIP
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.hostIP
|