mirror of
https://github.com/BretFisher/shpod.git
synced 2026-02-14 13:09:50 +00:00
44 lines
752 B
YAML
44 lines
752 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: bretfisher/shpod:latest
|
|
stdin: true
|
|
tty: true
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: HOSTIP
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.hostIP
|