Difference between revisions of "Spec:"
Jump to navigation
Jump to search
Line 63: | Line 63: | ||
* <code>[[cpu:]]</code> | * <code>[[cpu:]]</code> | ||
* <code>[[data:]]</code> | * <code>[[data:]]</code> | ||
+ | [[spec.container]] | ||
+ | [[spec.resource]] | ||
== See also == | == See also == |
Revision as of 19:03, 21 December 2022
kind: Pod kind: Deployment kind: ReplicaSet kind: CronJob kind: PersistentVolumeClaim
kind: Deployment
spec: containers: - name: MyNginxContainer image: nginx
spec: containers: - name: your-name image: your-name:latest tty: true stdin: true
spec: podSelector: matchLabels: app: elasticsearch-master
spec: topologySpreadConstraints:
ApiVersion: apps/v1 kind: Deployment metadata: name: spread-host-az labels: app: web-server spec: replicas: 4 .../...
Official example container using secrets
https://kubernetes.io/docs/concepts/configuration/secret/
apiVersion: v1 kind: Pod metadata: name: secret-env-pod spec: containers: - name: mycontainer image: redis env: - name: SECRET_USERNAME valueFrom: secretKeyRef: name: mysecret key: username optional: false # same as default; "mysecret" must exist # and include a key named "username" - name: SECRET_PASSWORD valueFrom: secretKeyRef: name: mysecret key: password optional: false # same as default; "mysecret" must exist # and include a key named "password" restartPolicy: Never
Related
spec.container spec.resource
See also
spec, spec., spec.containers, spec.volumes, spec.resources, ingress.spec.rules
kind:
[Pod | Ingress | ClusterConfiguration
|Config | ConfigMap | ServiceAccount | Deployment | List | Secret | Status ], spec: metadata: data:
- Kubernetes API, Kubernetes API server, EKS API,
apiVersion:, kubectl api-resources, kubectl api-versions, kind:
, Kubernetes API endpoint, 6443, 10250 (kubelet)kube-apiserver
, /etc/kubernetes/manifests/kube-apiserver.yaml,valueFrom, /var/log/kube-apiserver.log, /api/v1/, k8s.io
Advertising: