You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
560 B
33 lines
560 B
apiVersion: v1 |
|
kind: Pod |
|
metadata: |
|
name: etcd |
|
namespace: sopod |
|
labels: |
|
app: etcd |
|
spec: |
|
containers: |
|
- name: etcd |
|
image: bitnami/etcd:3.4 |
|
env: |
|
- name: ALLOW_NONE_AUTHENTICATION |
|
value: "yes" |
|
- name: TZ |
|
value: "Asia/Shanghai" |
|
imagePullPolicy: IfNotPresent |
|
ports: |
|
- containerPort: 2379 |
|
- containerPort: 2380 |
|
--- |
|
apiVersion: v1 |
|
kind: Service |
|
metadata: |
|
namespace: sopod |
|
name: etcd-svc |
|
labels: |
|
app: etcd-svc |
|
spec: |
|
ports: |
|
- port: 2379 |
|
selector: |
|
app: etcd
|
|
|