-
Notifications
You must be signed in to change notification settings - Fork 614
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
78 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM gcr.io/distroless/base | ||
|
||
ENV APISERVER_CERT_LOCATION /vkubelet-mock-0-crt.pem | ||
ENV APISERVER_KEY_LOCATION /vkubelet-mock-0-key.pem | ||
ENV APISERVER_CERT_LOCATION /vkubelet-mock-crt.pem | ||
ENV APISERVER_KEY_LOCATION /vkubelet-mock-key.pem | ||
ENV KUBELET_PORT 10250 | ||
|
||
# Use the pre-built binary in "bin/virtual-kubelet". | ||
COPY bin/e2e/virtual-kubelet /virtual-kubelet | ||
# Copy the configuration file for the mock provider. | ||
COPY hack/skaffold/virtual-kubelet/vkubelet-mock-0-cfg.json /vkubelet-mock-0-cfg.json | ||
COPY hack/skaffold/virtual-kubelet/vkubelet-mock-cfg.json /vkubelet-mock-cfg.json | ||
# Copy the certificate for the HTTPS server. | ||
COPY hack/skaffold/virtual-kubelet/vkubelet-mock-0-crt.pem /vkubelet-mock-0-crt.pem | ||
COPY hack/skaffold/virtual-kubelet/vkubelet-mock-crt.pem /vkubelet-mock-crt.pem | ||
# Copy the private key for the HTTPS server. | ||
COPY hack/skaffold/virtual-kubelet/vkubelet-mock-0-key.pem /vkubelet-mock-0-key.pem | ||
COPY hack/skaffold/virtual-kubelet/vkubelet-mock-key.pem /vkubelet-mock-key.pem | ||
|
||
CMD ["/virtual-kubelet"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: vkubelet-mock-1 | ||
spec: | ||
containers: | ||
- name: vkubelet-mock-1 | ||
image: virtual-kubelet | ||
# "IfNotPresent" is used to prevent Minikube from trying to pull from the registry (and failing) in the first place. | ||
imagePullPolicy: IfNotPresent | ||
args: | ||
- /virtual-kubelet | ||
- --nodename | ||
- vkubelet-mock-1 | ||
- --provider | ||
- mock | ||
- --provider-config | ||
- /vkubelet-mock-cfg.json | ||
- --startup-timeout | ||
- 10s | ||
- --klog.v | ||
- "2" | ||
- --klog.logtostderr | ||
- --log-level | ||
- debug | ||
- --metrics-addr | ||
- :10256 | ||
env: | ||
- name: KUBELET_PORT | ||
value: "10251" | ||
ports: | ||
- name: metrics | ||
containerPort: 10256 | ||
readinessProbe: | ||
httpGet: | ||
path: /stats/summary | ||
port: metrics | ||
serviceAccountName: virtual-kubelet |
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
7 changes: 6 additions & 1 deletion
7
.../virtual-kubelet/vkubelet-mock-0-cfg.json → ...ld/virtual-kubelet/vkubelet-mock-cfg.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
{ | ||
"vkubelet-mock-0": { | ||
"cpu": "2", | ||
"memory": "32Gi", | ||
"pods": "128" | ||
}, | ||
"vkubelet-mock-0": { | ||
"cpu": "2", | ||
"memory": "32Gi", | ||
"pods": "128" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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
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
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