Created
September 26, 2019 15:39
-
-
Save d33d33/2a1529a388e6f8193352a78e1e1ae875 to your computer and use it in GitHub Desktop.
netrig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: netrig | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: netrig | |
namespace: netrig | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: Role | |
metadata: | |
name: list-pods | |
namespace: netrig | |
rules: | |
- apiGroups: [""] | |
resources: ["pods"] | |
verbs: ["get", "watch", "list"] | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: RoleBinding | |
metadata: | |
name: list-pods_netrig | |
namespace: netrig | |
subjects: | |
- kind: ServiceAccount | |
name: netrig | |
namespace: netrig | |
roleRef: | |
kind: Role | |
name: list-pods | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: netrig | |
namespace: netrig | |
labels: | |
k8s-app: netrig | |
spec: | |
selector: | |
matchLabels: | |
name: netrig | |
template: | |
metadata: | |
labels: | |
name: netrig | |
spec: | |
containers: | |
- name: netrig | |
image: d33d33/netrig:0.0.10 | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 8080 | |
resources: | |
limits: | |
memory: 200Mi | |
restartPolicy: Always | |
serviceAccount: netrig | |
serviceAccountName: netrig | |
terminationGracePeriodSeconds: 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment