Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfarzan committed Jan 20, 2018
0 parents commit aab9bf8
Show file tree
Hide file tree
Showing 15 changed files with 120 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/ @frankfarzan
/online @filmil
/online/shipping-app-backend @mdruskin @briantkennedy
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# foo-corp-example
12 changes: 12 additions & 0 deletions namespace-viewer-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: namespace-readers
subjects:
- kind: User
name: [email protected]
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: namespace-reader
apiGroup: rbac.authorization.k8s.io
12 changes: 12 additions & 0 deletions namespace-viewer-rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: namespace-readers
subjects:
- kind: User
name: [email protected]
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: namespace-reader
apiGroup: rbac.authorization.k8s.io
8 changes: 8 additions & 0 deletions online/pod-reader-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-reader
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "watch", "list"]
12 changes: 12 additions & 0 deletions online/shipping-app-backend/pod-creator-rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: team-pod-creator
subjects:
- kind: Group
name: shiiping-app-backend-team
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: pod-creator
apiGroup: rbac.authorization.k8s.io
12 changes: 12 additions & 0 deletions online/shipping-app-backend/pod-reader-rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: alice-rolebinding
subjects:
- kind: User
name: [email protected]
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: pod-reader
apiGroup: rbac.authorization.k8s.io
7 changes: 7 additions & 0 deletions online/shipping-app-backend/quota.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: ResourceQuota
apiVersion: v1
metadata:
name: pod-quota
spec:
hard:
pods: "3"
4 changes: 4 additions & 0 deletions online/shipping-app-backend/shipping-dev/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: shipping-dev
7 changes: 7 additions & 0 deletions online/shipping-app-backend/shipping-dev/quota.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: ResourceQuota
apiVersion: v1
metadata:
name: pod-quota
spec:
hard:
pods: "1"
4 changes: 4 additions & 0 deletions online/shipping-app-backend/shipping-prod/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: shipping-prod
4 changes: 4 additions & 0 deletions online/shipping-app-backend/shipping-staging/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: shipping-staging
9 changes: 9 additions & 0 deletions pod-creator-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-creator
rules:
- apiGroups: [""]
resources: ["pods"]
verbs:
- "*"
9 changes: 9 additions & 0 deletions pod-creator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-creator
rules:
- apiGroups: [""]
resources: ["pods"]
verbs:
- "*"
16 changes: 16 additions & 0 deletions pod-security-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: extensions/v1beta1
kind: PodSecurityPolicy
metadata:
name: psp
spec:
privileged: false
seLinux:
rule: RunAsAny
supplementalGroups:
rule: RunAsAny
runAsUser:
rule: RunAsAny
fsGroup:
rule: RunAsAny
volumes:
- '*'

0 comments on commit aab9bf8

Please sign in to comment.