Last active
October 25, 2023 22:46
-
-
Save ggMartinez/108020cc5491de5dffaa299a834edec9 to your computer and use it in GitHub Desktop.
Kubernetes Manifests
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
apiVersion: batch/v1beta1 | |
kind: CronJob | |
metadata: | |
name: nombre-cronjob | |
namespace: nombre-namespace | |
spec: | |
schedule: "*/1 * * * *" | |
jobTemplate: | |
spec: | |
template: | |
spec: | |
containers: | |
- name: nombre | |
image: imagen | |
env: | |
- name: nombre | |
value: "valor" | |
terminationGracePeriodSeconds: 1800 |
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
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: nombre-daemonset | |
namespace: nombre-namespace | |
spec: | |
selector: | |
matchLabels: | |
clave: valor | |
template: | |
metadata: | |
labels: | |
clave: valor | |
spec: | |
containers: | |
- name: contenedor | |
image: imagen:tag | |
ports: | |
- containerPort: puerto | |
env: | |
- name: VARIABLE | |
value: valor |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nombre-deployment | |
namespace: nombre-namespace | |
spec: | |
selector: | |
matchLabels: | |
clave: valor | |
replicas: 3 | |
template: | |
metadata: | |
labels: | |
clave: valor | |
spec: | |
containers: | |
- name: contenedor | |
image: imagen:tag | |
ports: | |
- containerPort: puerto | |
env: | |
- name: VARIABLE | |
value: valor |
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
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: nombre-job | |
namespace: namespace | |
spec: | |
template: | |
spec: | |
containers: | |
- name: nombre-contenedor | |
image: imagen:tag | |
command: ["comando", "parametro", "parametro", ] |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: nombre-namespace |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nombre-pod | |
namespace: nombre-namespace | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:1.14.2 | |
ports: | |
- containerPort: 80 | |
env: | |
- name: VARIABLE | |
value: valor | |
restartPolicy: OnFailure |
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
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: nombre-statefulset | |
namespace: nombre-namespace | |
spec: | |
selector: | |
matchLabels: | |
clave: valor | |
replicas: 1 | |
serviceName: nombreServicio | |
template: | |
metadata: | |
labels: | |
clave: valor | |
spec: | |
containers: | |
- name: nombre-contenedor | |
image: imagen:tag | |
ports: | |
- containerPort: puerto | |
env: | |
- name: VARIABLE | |
value: valor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment