This repository was archived by the owner on Mar 2, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgpt-detector
More file actions
59 lines (48 loc) · 1.83 KB
/
gpt-detector
File metadata and controls
59 lines (48 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
1. ACR related
# Get access token for Sophie to use the ACR:
$ az acr token create --name SophieToken --registry gptdetector --output json --repository gensy/classifier content/write content/read
# Then Sophie tag her image with: registry and repository name
docker tag gensy gptdetector.azurecr.io/gensy/classifier:01
# Then she pushes image to ACR
docker push gptdetector.azurecr.io/gensy/classifier:01
# Show repository
az acr repository show -n gptdetector --repository gensy/classifier
# Show image
az acr repository show -n gptdetector --image gensy/classifier:01
$ az acr manifest list-metadata -r gptdetector -n gensy/classifier
Command group 'acr manifest' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
[
{
"architecture": "amd64",
"changeableAttributes": {
"deleteEnabled": true,
"listEnabled": true,
"readEnabled": true,
"writeEnabled": true
},
"configMediaType": "application/vnd.docker.container.image.v1+json",
"createdTime": "2023-01-06T21:57:39.2681429Z",
"digest": "sha256:a6c49eeb7264cd639c146d1176348d5865523b845dafe80e6968fc1bcb4e6af1",
"imageSize": 4507466143,
"lastUpdateTime": "2023-01-06T21:57:39.2681429Z",
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"os": "linux",
"tags": [
"01"
]
}
]
2. Kubernetes service related
deployment yaml file is checked in separately
# Apply change and redeploy
$ k apply -f gpt-detector.deploy.yaml
# Check pod deployment status
$ k get po -ngpt-detector -o wide
# Check pod logs
$ k logs <pod name from above> -ngpt-detector
# Port-forward to test locally
k port-forward <pod name from above> -ngpt-detector 5000:5000
# exec into pod
k exec -it <pod name from above> -ngpt-detector -- /bin/bash
# ssh onto the node
k node-shell <node name>