Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5edda006
authored
Jan 02, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
other
1 parent
c9197e64
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
7 deletions
script/harbor/push-autodl-workspace.sh
script/k8s/bootstrap.kubeconfig
script/k8s/kube-proxy.kubeconfig
script/harbor/push-autodl-workspace.sh
View file @
5edda00
...
...
@@ -6,7 +6,7 @@ image_path=/root/workspace_image
for
image
in
`
ls
$image_path
`
do
echo
"开始导入镜像到本地"
docker load -i
$image_path
/
$image
#
docker load -i $image_path/$image
done
echo
"开始给镜像打tag"
image_name
=(
...
...
@@ -24,12 +24,10 @@ hb.seetatech.com/autodl-workspace/tensorflow:gpu-py3-v1.14.0
)
for
i
in
${
image_name
[@]
}
do
for
z
in
`
echo
$i
|awk -F /
'{print $3}'
`
do
z
=
`
echo
$i
|awk -F /
'{print $3}'
`
echo
$z
docker tag
$i
$harbor_host
/autodl-workspace/
$z
docker login
$harbor_host
-u admin -p
$harbor_passwd
docker push
$harbor_host
/autodl-workspace/
$z
done
#docker tag $i $harbor_host/autodl-workspace/$z
#docker login $harbor_host -u admin -p $harbor_passwd
#docker push $harbor_host/autodl-workspace/$z
done
script/k8s/bootstrap.kubeconfig
0 → 100644
View file @
5edda00
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR2akNDQXFhZ0F3SUJBZ0lVRHZSbjF6MnVBU291NnZxcGYyb3N1YUVLcjljd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRU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URWUjBqQkJnd0ZvQVVoMFF0VFpjMApYVXBrd3RGR0EvVzRsNEJyOERvd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dFQkFJY0FJRUI1TDc0TjZTZU1nMW9rCkY2TGRPY2c2d1NXMGp1NGZNOUZoN3ZuVmlrVFhtK2VBQ0dCcWhySXpCOVd3bjZGWWplaTdIMCtMSUJJU2dyQmgKVXk0dFZRckczZUdBQTY3Q3diQzhhQy9vYlhTNkJBZnliZWdJbUpJcGNrNEd6RExqaUF4WTBnaml2aE5adzhwdQp2N0lXT2FKcUM0ZUxoOG4wQzZ6MXhaMENWV1dLRjFRT2o4VmUvcmptSzkvUUdta3I1MHpJUzV5RDRrL2hpdzE3CklMWUJmZFRHQWtxOFk2R01XcEtRMGxDdTJ6NXBjdW91WVlycTc4MytwU1hMcVY0b2tuWlA1aHk4TktBdVFxbkEKZTNmekoyMm94VGN3VTY0eUQwQXU5Z3hXYW5INFFpbmpObGx5WCtrK2FmYmxiMURSdFFxalF0TmdBdGZ3a1M4ZQpxV3c9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://192.168.1.32:6443
name: kubernetes
contexts:
- context:
cluster: kubernetes
user: kubelet-bootstrap
name: default
current-context: default
kind: Config
preferences: {}
users:
- name: kubelet-bootstrap
user:
token: c5d5a11e13492748800f4fba7b687623
script/k8s/kube-proxy.kubeconfig
0 → 100644
View file @
5edda00
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR2akNDQXFhZ0F3SUJBZ0lVRHZSbjF6MnVBU291NnZxcGYyb3N1YUVLcjljd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeEREQUtCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnR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PY2c2d1NXMGp1NGZNOUZoN3ZuVmlrVFhtK2VBQ0dCcWhySXpCOVd3bjZGWWplaTdIMCtMSUJJU2dyQmgKVXk0dFZRckczZUdBQTY3Q3diQzhhQy9vYlhTNkJBZnliZWdJbUpJcGNrNEd6RExqaUF4WTBnaml2aE5adzhwdQp2N0lXT2FKcUM0ZUxoOG4wQzZ6MXhaMENWV1dLRjFRT2o4VmUvcmptSzkvUUdta3I1MHpJUzV5RDRrL2hpdzE3CklMWUJmZFRHQWtxOFk2R01XcEtRMGxDdTJ6NXBjdW91WVlycTc4MytwU1hMcVY0b2tuWlA1aHk4TktBdVFxbkEKZTNmekoyMm94VGN3VTY0eUQwQXU5Z3hXYW5INFFpbmpObGx5WCtrK2FmYmxiMURSdFFxalF0TmdBdGZ3a1M4ZQpxV3c9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
server: https://192.168.1.32:6443
name: kubernetes
contexts:
- context:
cluster: kubernetes
user: kube-proxy
name: default
current-context: default
kind: Config
preferences: {}
users:
- name: kube-proxy
user:
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUQzakNDQXNhZ0F3SUJBZ0lVZDYrWnU4MENkMGQ4Z2dJcTZqR3hwbXp1VjhBd0RRWUpLb1pJaHZjTkFRRUwKQlFBd1pURUxNQWtHQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbAphVXBwYm1jeEREQUtCZ05WQkFvVEEyczRjekVQTUEwR0ExVUVDeE1HVTNsemRHVnRNUk13RVFZRFZRUURFd3ByCmRXSmxjbTVsZEdWek1CNFhEVEU1TURVd056QTNOVEV3TUZvWERUSTVNRFV3TkRBM05URXdNRm93YkRFTE1Ba0cKQTFVRUJoTUNRMDR4RURBT0JnTlZCQWdUQjBKbGFVcHBibWN4RURBT0JnTlZCQWNUQjBKbGFVcHBibWN4RERBSwpCZ05WQkFvVEEyczRjekVQTUE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XSFNTWUxJUVhDL1h0Q3l0UTJndWlOZmRRY0NBNnpxSFVGUkQydkdKYjNnT1J1Q2grVlBSZnZ1QjF1a2w3agpneDBMRVFCalBGdGprSERNYlBjK09Na01ETUpOQ1RScjFuYmhZaVA1UkNRWVo0U080LzRoVmw4enJRY1JCY3RTCk5pTkRnUUtCZ0JTS1Z3VDdINUxMWS9qVnE4Sk5HTFZRNXZ4WWxTdVRYQzhYSkhPUDQ5dzV5dlY1eERORDdhUE0KV1hjOGR6aDdQNE5PTG1yL1UwL0xYQzhrdGx4UU1Xai94N3J5ZitFQk0rNVJhK2pab0ViN0xhUHQ2d2MwSGM0UApMWEY1dHo1dENRbVo5V1FXL1pGZGUwMXNYYlJSWFFRdkVvdE1QNVhMd1dDN1FpRlA2TDZpCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg==
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment