Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
k8s: Make vtctld a replication controller, and other fixes.
vtctld should be a replication controller rather than a single pod, so it gets restarted if the node fails. Also made other fixes as suggested in a review by some Kubernetes folks.
- Loading branch information
Showing
17 changed files
with
109 additions
and
74 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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
kind: ReplicationController | ||
apiVersion: v1 | ||
metadata: | ||
name: vtctld | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
component: vtctld | ||
app: vitess | ||
spec: | ||
containers: | ||
- name: vtctld | ||
image: vitess/lite | ||
volumeMounts: | ||
- name: syslog | ||
mountPath: /dev/log | ||
- name: vtdataroot | ||
mountPath: /vt/vtdataroot | ||
resources: | ||
limits: | ||
memory: "128Mi" | ||
cpu: "100m" | ||
command: | ||
- sh | ||
- "-c" | ||
- >- | ||
mkdir -p $VTDATAROOT/tmp && | ||
chown -R vitess /vt && | ||
su -p -c "/vt/bin/vtctld | ||
-debug | ||
-templates $VTTOP/go/cmd/vtctld/templates | ||
-web_dir $VTTOP/web/vtctld | ||
-log_dir $VTDATAROOT/tmp | ||
-alsologtostderr | ||
-port 15000 | ||
-topo_implementation etcd | ||
-tablet_protocol grpc | ||
-etcd_global_addrs http://$ETCD_GLOBAL_SERVICE_HOST:$ETCD_GLOBAL_SERVICE_PORT" vitess | ||
volumes: | ||
- name: syslog | ||
hostPath: {path: /dev/log} | ||
- name: vtdataroot | ||
emptyDir: {} |
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 was deleted.
Oops, something went wrong.
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
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
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
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