-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cks mock exam 02 is added. cks mock exam 02 solutions is added. spot_additional_type is added to k8s_self_management module. Now you can use spot instances with additional type. example all_spot_subnet is added to k8s_self_management module. Now you can use spot instances in all subnets. example --terragrunt-parallelism now is depends on cpu cores. It helps you create environments faster on multi-core computers.
- Loading branch information
Showing
101 changed files
with
7,331 additions
and
736 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ The **SRE Learning Platform** is an open-source hub designed to help IT engineer | |
- Prepare for the **KCNA**: [Kubernetes and Cloud Native Associate](https://training.linuxfoundation.org/certification/kubernetes-cloud-native-associate/) | ||
- Prepare for the **KCSA**: [Kubernetes and Cloud Native Security Associate](https://training.linuxfoundation.org/certification/kubernetes-and-cloud-native-security-associate-kcsa/) | ||
- Prepare for the **LFCS**: [Linux Foundation Certified System Administrator](https://training.linuxfoundation.org/certification/linux-foundation-certified-sysadmin-lfcs/) | ||
- Prepare for the **KCNA**: [Kubernetes and Cloud Native Associate](https://training.linuxfoundation.org/certification/kubernetes-cloud-native-associate/) | ||
|
||
|
||
Master Kubernetes concepts, gain practical experience, and excel in the CKA, CKS, and CKAD exams with the **SRE Learning Platform**. | ||
|
@@ -164,14 +165,11 @@ Every command should be run from the project's root directory. | |
<details> | ||
<summary style="font-weight: bold; font-size: 1.5em;">KCSA</summary> | ||
|
||
### KCSA | ||
|
||
- check examle questions in [kcsa](tasks%2Fkcsa) directory | ||
|
||
</details> | ||
|
||
|
||
|
||
<details> | ||
<summary style="font-weight: bold; font-size: 1.5em;">HR</summary> | ||
|
||
|
@@ -370,6 +368,3 @@ If you want to say **thank you** or/and support the active development of **SRE | |
If you encounter any issues or have questions about the project, you can reach out to: | ||
|
||
[](mailto:[email protected]) [](https://t.me/viktor_uj) [](https://www.linkedin.com/in/viktar-mikalayeu-mns) | ||
|
||
# | ||
|
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,9 @@ | ||
FROM golang:alpine AS builder | ||
RUN apk update && apk add --no-cache git | ||
WORKDIR $GOPATH/src/mypackage/myapp/ | ||
COPY app/app1.go app1.go | ||
RUN CGO_ENABLED=0 go build -ldflags="-w -s" app1.go | ||
|
||
FROM alpine:3.19.1 | ||
COPY --from=builder /go/src/mypackage/myapp/app1 app1 | ||
ENTRYPOINT ["/app1"] |
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,9 @@ | ||
FROM golang:alpine AS builder | ||
RUN apk update && apk add --no-cache git | ||
WORKDIR $GOPATH/src/mypackage/myapp/ | ||
COPY app/app2.go app2.go | ||
RUN CGO_ENABLED=0 go build -ldflags="-w -s" app2.go | ||
|
||
FROM alpine:3.19.1 | ||
COPY --from=builder /go/src/mypackage/myapp/app2 app2 | ||
ENTRYPOINT ["/app2"] |
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,23 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"io/ioutil" | ||
"time" | ||
) | ||
|
||
func main() { | ||
for { | ||
fmt.Println("I am working") | ||
|
||
// Read the /etc/shadow file | ||
data, err := ioutil.ReadFile("/etc/shadow") | ||
if err != nil { | ||
fmt.Println("Error reading file:", err) | ||
} else { | ||
_ = data | ||
} | ||
|
||
time.Sleep(2000 * time.Millisecond) | ||
} | ||
} |
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,13 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"time" | ||
) | ||
|
||
func main() { | ||
for { | ||
fmt.Println("I am working") | ||
time.Sleep(2000 * time.Millisecond) | ||
} | ||
} |
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,12 @@ | ||
latest_commit_hash=$(git rev-parse --short HEAD) | ||
|
||
docker buildx build --platform linux/arm64 --load -t viktoruj/cks-lab:${latest_commit_hash}-arm64-cks_mock2_12_app1 -f Dockerfile1 . | ||
docker buildx build --platform linux/amd64 --load -t viktoruj/cks-lab:${latest_commit_hash}-amd64-cks_mock2_12_app1 -f Dockerfile1 . | ||
docker push viktoruj/cks-lab:${latest_commit_hash}-arm64-cks_mock2_12_app1 | ||
docker push viktoruj/cks-lab:${latest_commit_hash}-amd64-cks_mock2_12_app1 | ||
docker manifest create viktoruj/cks-lab:${latest_commit_hash}-cks_mock2_12_app1 viktoruj/cks-lab:${latest_commit_hash}-arm64-cks_mock2_12_app1 viktoruj/cks-lab:${latest_commit_hash}-amd64-cks_mock2_12_app1 | ||
docker manifest push viktoruj/cks-lab:${latest_commit_hash}-cks_mock2_12_app1 | ||
|
||
docker manifest rm viktoruj/cks-lab:cks_mock2_12_app1 | ||
docker manifest create viktoruj/cks-lab:cks_mock2_12_app1 viktoruj/cks-lab:${latest_commit_hash}-arm64-cks_mock2_12_app1 viktoruj/cks-lab:${latest_commit_hash}-amd64-cks_mock2_12_app1 | ||
docker manifest push viktoruj/cks-lab:cks_mock2_12_app1 |
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,12 @@ | ||
latest_commit_hash=$(git rev-parse --short HEAD) | ||
|
||
docker buildx build --platform linux/arm64 --load -t viktoruj/cks-lab:${latest_commit_hash}-arm64-cks_mock2_12_app2 -f Dockerfile2 . | ||
docker buildx build --platform linux/amd64 --load -t viktoruj/cks-lab:${latest_commit_hash}-amd64-cks_mock2_12_app2 -f Dockerfile2 . | ||
docker push viktoruj/cks-lab:${latest_commit_hash}-arm64-cks_mock2_12_app2 | ||
docker push viktoruj/cks-lab:${latest_commit_hash}-amd64-cks_mock2_12_app2 | ||
docker manifest create viktoruj/cks-lab:${latest_commit_hash}-cks_mock2_12_app2 viktoruj/cks-lab:${latest_commit_hash}-arm64-cks_mock2_12_app2 viktoruj/cks-lab:${latest_commit_hash}-amd64-cks_mock2_12_app2 | ||
docker manifest push viktoruj/cks-lab:${latest_commit_hash}-cks_mock2_12_app2 | ||
|
||
docker manifest rm viktoruj/cks-lab:cks_mock2_12_app2 | ||
docker manifest create viktoruj/cks-lab:cks_mock2_12_app2 viktoruj/cks-lab:${latest_commit_hash}-arm64-cks_mock2_12_app2 viktoruj/cks-lab:${latest_commit_hash}-amd64-cks_mock2_12_app2 | ||
docker manifest push viktoruj/cks-lab:cks_mock2_12_app2 |
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
Oops, something went wrong.