-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
1,200 additions
and
1,200 deletions.
There are no files selected for viewing
File renamed without changes.
80 changes: 40 additions & 40 deletions
80
k8s/beginner/90daysofdevops/nginx.yaml → topic/k8s/beginner/90daysofdevops/nginx.yaml
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,41 +1,41 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: nginx | ||
"labels": { | ||
"name": "nginx" | ||
} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
namespace: nginx | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx | ||
ports: | ||
- containerPort: 80 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: nginx-service | ||
namespace: nginx | ||
spec: | ||
selector: | ||
app: nginx-deployment | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: nginx | ||
"labels": { | ||
"name": "nginx" | ||
} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
namespace: nginx | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx | ||
ports: | ||
- containerPort: 80 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: nginx-service | ||
namespace: nginx | ||
spec: | ||
selector: | ||
app: nginx-deployment | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: 80 |
12 changes: 6 additions & 6 deletions
12
k8s/beginner/GOOD-READ.md → topic/k8s/beginner/GOOD-READ.md
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,6 +1,6 @@ | ||
# Links: | ||
## https://medium.com/google-cloud/kubernetes-110-your-first-deployment-bf123c1d3f8 | ||
|
||
## https://medium.com/google-cloud/kubernetes-120-networking-basics-3b903f13093a | ||
|
||
## https://medium.com/google-cloud/kubernetes-120-networking-basics-3b903f13093a | ||
# Links: | ||
## https://medium.com/google-cloud/kubernetes-110-your-first-deployment-bf123c1d3f8 | ||
|
||
## https://medium.com/google-cloud/kubernetes-120-networking-basics-3b903f13093a | ||
|
||
## https://medium.com/google-cloud/kubernetes-120-networking-basics-3b903f13093a |
80 changes: 40 additions & 40 deletions
80
k8s/beginner/gitea-deployment-service.yml → ...k8s/beginner/gitea-deployment-service.yml
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,40 +1,40 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: gitea-deployment | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: gitea | ||
template: | ||
metadata: | ||
labels: | ||
app: gitea | ||
spec: | ||
containers: | ||
- name: gitea-container | ||
image: gitea/gitea:1.4 | ||
ports: | ||
- containerPort: 3000 | ||
name: http | ||
- containerPort: 22 | ||
name: ssh | ||
--- | ||
kind: Service #+ | ||
apiVersion: v1 #+ | ||
metadata: #+ | ||
name: gitea-service #+ | ||
spec: #+ | ||
selector: #+ | ||
app: gitea #+ | ||
ports: #+ | ||
- protocol: TCP #+ | ||
targetPort: 3000 #+ | ||
port: 80 #+ | ||
name: http #+ | ||
- protocol: TCP #+ | ||
targetPort: 22 #+ | ||
port: 22 #+ | ||
name: ssh #+ | ||
type: NodePort #+ -> Nodeport for local custer, for cloud provider use LoadBalancer option | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: gitea-deployment | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: gitea | ||
template: | ||
metadata: | ||
labels: | ||
app: gitea | ||
spec: | ||
containers: | ||
- name: gitea-container | ||
image: gitea/gitea:1.4 | ||
ports: | ||
- containerPort: 3000 | ||
name: http | ||
- containerPort: 22 | ||
name: ssh | ||
--- | ||
kind: Service #+ | ||
apiVersion: v1 #+ | ||
metadata: #+ | ||
name: gitea-service #+ | ||
spec: #+ | ||
selector: #+ | ||
app: gitea #+ | ||
ports: #+ | ||
- protocol: TCP #+ | ||
targetPort: 3000 #+ | ||
port: 80 #+ | ||
name: http #+ | ||
- protocol: TCP #+ | ||
targetPort: 22 #+ | ||
port: 22 #+ | ||
name: ssh #+ | ||
type: NodePort #+ -> Nodeport for local custer, for cloud provider use LoadBalancer option |
42 changes: 21 additions & 21 deletions
42
k8s/beginner/gitea-deployment-with-port.yaml → .../beginner/gitea-deployment-with-port.yaml
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,22 +1,22 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: gitea-deployment | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: gitea | ||
template: | ||
metadata: | ||
labels: | ||
app: gitea | ||
spec: | ||
containers: | ||
- name: gitea-container | ||
image: gitea/gitea:1.4 | ||
ports: #+ | ||
- containerPort: 3000 #+ | ||
name: http #+ | ||
- containerPort: 22 #+ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: gitea-deployment | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: gitea | ||
template: | ||
metadata: | ||
labels: | ||
app: gitea | ||
spec: | ||
containers: | ||
- name: gitea-container | ||
image: gitea/gitea:1.4 | ||
ports: #+ | ||
- containerPort: 3000 #+ | ||
name: http #+ | ||
- containerPort: 22 #+ | ||
name: ssh #+ |
36 changes: 18 additions & 18 deletions
36
k8s/beginner/gitea-deployment.yaml → topic/k8s/beginner/gitea-deployment.yaml
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,18 +1,18 @@ | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: gitea-deployment | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: gitea | ||
template: | ||
metadata: | ||
labels: | ||
app: gitea | ||
spec: | ||
containers: | ||
- name: gitea-container | ||
image: gitea/gitea:1.4 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: gitea-deployment | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: gitea | ||
template: | ||
metadata: | ||
labels: | ||
app: gitea | ||
spec: | ||
containers: | ||
- name: gitea-container | ||
image: gitea/gitea:1.4 |
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,9 +1,9 @@ | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: gitea-pod | ||
spec: | ||
containers: | ||
- name: gitea-container-tung | ||
image: gitea/gitea:1.4 | ||
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: gitea-pod | ||
spec: | ||
containers: | ||
- name: gitea-container-tung | ||
image: gitea/gitea:1.4 |
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,36 +1,36 @@ | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mysql-deployment | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mysql | ||
template: | ||
metadata: | ||
labels: | ||
app: mysql | ||
spec: | ||
containers: | ||
- name: mysql | ||
image: mysql:5.6 | ||
ports: | ||
- containerPort: 3306 | ||
# Ignore this for now. It will be explained in the next article | ||
env: | ||
- name: MYSQL_ALLOW_EMPTY_PASSWORD | ||
value: "true" | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: mysql-service | ||
spec: | ||
selector: | ||
app: mysql | ||
ports: | ||
- protocol: TCP | ||
port: 3306 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mysql-deployment | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mysql | ||
template: | ||
metadata: | ||
labels: | ||
app: mysql | ||
spec: | ||
containers: | ||
- name: mysql | ||
image: mysql:5.6 | ||
ports: | ||
- containerPort: 3306 | ||
# Ignore this for now. It will be explained in the next article | ||
env: | ||
- name: MYSQL_ALLOW_EMPTY_PASSWORD | ||
value: "true" | ||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: mysql-service | ||
spec: | ||
selector: | ||
app: mysql | ||
ports: | ||
- protocol: TCP | ||
port: 3306 | ||
type: ClusterIP |
2 changes: 1 addition & 1 deletion
2
k8s/play-around/install-jenkins/README.md → ...k8s/play-around/install-jenkins/README.md
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 +1 @@ | ||
# Following: https://www.jenkins.io/doc/book/installing/kubernetes/#install-jenkins-with-helm-v3 | ||
# Following: https://www.jenkins.io/doc/book/installing/kubernetes/#install-jenkins-with-helm-v3 |
Oops, something went wrong.