Skip to content

Commit c984ff3

Browse files
authored
Merge pull request #961 from Vafilor/feat/remove.community.restrictions
fix: remove namespace creation restriction
2 parents dd3d7f6 + 5283b7b commit c984ff3

17 files changed

+567
-5
lines changed

db/yaml/workspaces/cvat_1_6_0/20211028205201.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
metadata:
2-
name: CVAT
2+
name: CVAT_1.6.0
33
kind: Workspace
44
version: 20211028205201
55
action: create

manifest/abs/deployment.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"apiVersion": "apps/v1",
3+
"kind": "Deployment",
4+
"metadata": {
5+
"name": "minio-gateway",
6+
"namespace": "$(applicationDefaultNamespace)"
7+
},
8+
"spec": {
9+
"replicas": 1,
10+
"selector": {
11+
"matchLabels": {
12+
"app": "minio-gateway"
13+
}
14+
},
15+
"template": {
16+
"metadata": {
17+
"labels": {
18+
"app": "minio-gateway"
19+
},
20+
"annotations": {
21+
"sidecar.istio.io/inject": "false"
22+
}
23+
},
24+
"spec": {
25+
"containers": [
26+
{
27+
"name": "minio-gateway",
28+
"image": "minio/minio:RELEASE.2021-06-17T00-10-46Z.hotfix.49f6035b1",
29+
"args": [
30+
"gateway",
31+
"azure"
32+
],
33+
"env": [
34+
{
35+
"name": "MINIO_ACCESS_KEY",
36+
"valueFrom": {
37+
"secretKeyRef": {
38+
"name": "onepanel",
39+
"key": "artifactRepositoryS3AccessKey"
40+
}
41+
}
42+
},
43+
{
44+
"name": "MINIO_SECRET_KEY",
45+
"valueFrom": {
46+
"secretKeyRef": {
47+
"name": "onepanel",
48+
"key": "artifactRepositoryS3SecretKey"
49+
}
50+
}
51+
}
52+
],
53+
"ports": [
54+
{
55+
"containerPort": 9000
56+
}
57+
]
58+
}
59+
]
60+
}
61+
}
62+
}
63+
}

manifest/abs/service.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"apiVersion": "v1",
3+
"kind": "Service",
4+
"metadata": {
5+
"name": "minio-gateway",
6+
"namespace": "$(applicationDefaultNamespace)"
7+
},
8+
"spec": {
9+
"selector": {
10+
"app": "minio-gateway"
11+
},
12+
"ports": [
13+
{
14+
"port": 9000,
15+
"targetPort": 9000
16+
}
17+
]
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"apiVersion": "rbac.authorization.k8s.io/v1",
3+
"kind": "ClusterRoleBinding",
4+
"metadata": {
5+
"name": "onepanel-kfserving-$(applicationDefaultNamespace)"
6+
},
7+
"subjects": [
8+
{
9+
"kind": "ServiceAccount",
10+
"name": "$(applicationDefaultNamespace)",
11+
"namespace": "$(applicationDefaultNamespace)"
12+
}
13+
],
14+
"roleRef": {
15+
"apiGroup": "rbac.authorization.k8s.io",
16+
"kind": "ClusterRole",
17+
"name": "onepanel-models"
18+
}
19+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"apiVersion": "rbac.authorization.k8s.io/v1beta1",
3+
"kind": "ClusterRoleBinding",
4+
"metadata": {
5+
"labels": {
6+
"app": "onepanel"
7+
},
8+
"name": "onepanel-namespaces"
9+
},
10+
"roleRef": {
11+
"apiGroup": "rbac.authorization.k8s.io",
12+
"kind": "ClusterRole",
13+
"name": "onepanel-namespaces"
14+
},
15+
"subjects": [
16+
{
17+
"kind": "ServiceAccount",
18+
"name": "$(applicationDefaultNamespace)",
19+
"namespace": "$(applicationDefaultNamespace)"
20+
}
21+
]
22+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"apiVersion": "v1",
3+
"kind": "ConfigMap",
4+
"metadata": {
5+
"name": "onepanel",
6+
"namespace": "$(applicationDefaultNamespace)"
7+
},
8+
"data": {
9+
"artifactRepository": "archiveLogs: true\n$(artifactRepositoryProvider)\n"
10+
}
11+
}

manifest/gcs/deployment.json

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"apiVersion": "apps/v1",
3+
"kind": "Deployment",
4+
"metadata": {
5+
"name": "minio-gateway",
6+
"namespace": "$(applicationDefaultNamespace)"
7+
},
8+
"spec": {
9+
"replicas": 1,
10+
"selector": {
11+
"matchLabels": {
12+
"app": "minio-gateway"
13+
}
14+
},
15+
"template": {
16+
"metadata": {
17+
"labels": {
18+
"app": "minio-gateway"
19+
},
20+
"annotations": {
21+
"sidecar.istio.io/inject": "false"
22+
}
23+
},
24+
"spec": {
25+
"containers": [
26+
{
27+
"name": "minio-gateway",
28+
"image": "minio/minio:RELEASE.2021-06-17T00-10-46Z.hotfix.49f6035b1",
29+
"volumeMounts": [
30+
{
31+
"name": "gcs-credentials",
32+
"mountPath": "/etc/gcs",
33+
"readOnly": true
34+
}
35+
],
36+
"args": [
37+
"gateway",
38+
"gcs"
39+
],
40+
"env": [
41+
{
42+
"name": "MINIO_ACCESS_KEY",
43+
"valueFrom": {
44+
"secretKeyRef": {
45+
"name": "onepanel",
46+
"key": "artifactRepositoryS3AccessKey"
47+
}
48+
}
49+
},
50+
{
51+
"name": "MINIO_SECRET_KEY",
52+
"valueFrom": {
53+
"secretKeyRef": {
54+
"name": "onepanel",
55+
"key": "artifactRepositoryS3SecretKey"
56+
}
57+
}
58+
},
59+
{
60+
"name": "GOOGLE_APPLICATION_CREDENTIALS",
61+
"value": "/etc/gcs/credentials.json"
62+
}
63+
]
64+
}
65+
],
66+
"volumes": [
67+
{
68+
"name": "gcs-credentials",
69+
"projected": {
70+
"sources": [
71+
{
72+
"secret": {
73+
"name": "artifact-repository-gcs-credentials"
74+
}
75+
}
76+
]
77+
}
78+
}
79+
]
80+
}
81+
}
82+
}
83+
}

manifest/gcs/service.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"apiVersion": "v1",
3+
"kind": "Service",
4+
"metadata": {
5+
"name": "minio-gateway",
6+
"namespace": "$(applicationDefaultNamespace)"
7+
},
8+
"spec": {
9+
"selector": {
10+
"app": "minio-gateway"
11+
},
12+
"ports": [
13+
{
14+
"port": 9000,
15+
"targetPort": 9000
16+
}
17+
]
18+
}
19+
}

manifest/kfserving/secret.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"apiVersion": "v1",
3+
"kind": "Secret",
4+
"metadata": {
5+
"name": "kfserving-storage",
6+
"namespace": "$(applicationDefaultNamespace)",
7+
"annotations": {
8+
"serving.kubeflow.org/s3-endpoint": "$(artifactRepositoryS3Endpoint)",
9+
"serving.kubeflow.org/s3-usehttps": "0",
10+
"serving.kubeflow.org/s3-region": "$(artifactRepositoryS3Region)",
11+
"serving.kubeflow.org/s3-useanoncredential": "false"
12+
}
13+
},
14+
"type": "Opaque",
15+
"data": {
16+
"AWS_ACCESS_KEY_ID": "$(artifactRepositoryS3AccessKey)",
17+
"AWS_SECRET_ACCESS_KEY": "$(artifactRepositoryS3SecretKey)"
18+
}
19+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"apiVersion": "networking.k8s.io/v1",
3+
"kind": "NetworkPolicy",
4+
"metadata": {
5+
"labels": {
6+
"app": "onepanel"
7+
},
8+
"name": "onepanel",
9+
"namespace": "$(applicationDefaultNamespace)"
10+
},
11+
"spec": {
12+
"egress": [
13+
{
14+
"to": [
15+
{
16+
"ipBlock": {
17+
"cidr": "0.0.0.0/0",
18+
"except": [
19+
"169.254.169.254/32"
20+
]
21+
}
22+
}
23+
]
24+
}
25+
],
26+
"ingress": [
27+
{
28+
"from": [
29+
{
30+
"namespaceSelector": {
31+
"matchLabels": {
32+
"app.kubernetes.io/part-of": "onepanel"
33+
}
34+
}
35+
}
36+
]
37+
}
38+
],
39+
"podSelector": {}
40+
}
41+
}

0 commit comments

Comments
 (0)