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
I0802 05:22:03.481309 1652 event.go:216] Event(api.ObjectReference{Kind:"Deployment", Namespace:"default", Name:"sputnik", UID:"0bd9a0a6-5871-11e6-85ca-1ee1293b44bd", APIVersion:"extensions", ResourceVersion:"11559", FieldPath:""}): type: 'Normal' reason: 'ScalingReplicaSet' Scaled up replica set sputnik-309892640 to 1 | |
I0802 05:22:03.503370 1652 event.go:216] Event(api.ObjectReference{Kind:"ReplicaSet", Namespace:"default", Name:"sputnik-309892640", UID:"0bda22a4-5871-11e6-85ca-1ee1293b44bd", APIVersion:"extensions", ResourceVersion:"11560", FieldPath:""}): type: 'Normal' reason: 'SuccessfulCreate' Created pod: sputnik-309892640-8lvc8 | |
E0802 05:22:03.510447 1652 deployment_controller.go:400] Error syncing deployment default/sputnik: Operation cannot be fulfilled on deployments.extensions "sputnik": the object has been modified; please apply your changes to the latest version and try again | |
I0802 05:22:03.531728 1652 event.go:216] Event(api.ObjectReference{Kind:"Pod", Namespace:"default", Name:"sputn |
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
fsg@spatula:/Users/fsg/p/k8/sputnik $ kubectl run sputnik --image=sputnik:latest | |
deployment "sputnik" created | |
fsg@spatula:/Users/fsg/p/k8/sputnik $ |
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
sg@spatula:/Users/fsg/p/k8/sputnik $ docker build . -t sputnik:latest | |
Sending build context to Docker daemon 3.072 kB | |
Step 1 : FROM alpine | |
---> 4e38e38c8ce0 | |
Step 2 : COPY sputnik.sh / | |
---> Using cache | |
---> 8d783a6b5539 | |
Step 3 : CMD /sputnik.sh | |
---> Using cache | |
---> 185684a49ac0 |
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
FROM alpine | |
COPY sputnik.sh / | |
CMD ["/sputnik.sh"] |
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
#!/bin/sh | |
while true | |
do | |
sleep 5 | |
echo "ping" | |
date | |
done |
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
$ minikube start | |
Starting local Kubernetes cluster... | |
Running pre-create checks... | |
Creating machine... | |
Starting local Kubernetes cluster... | |
Kubernetes is available at https://192.168.99.100:8443. | |
$ kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080 | |
deployment "hello-minikube" created | |
$ kubectl expose deployment hello-minikube --type=NodePort |
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
-module(user_default). | |
-author('felixgallo@gmail.com'). | |
-author('wudeng@4399.net'). | |
-author('serge@hq.idt.net'). | |
-author('Ward Bekker'). | |
-author('Tobbe Tornqvist'). | |
-author('Scott Fritchie'). | |
%% if aware of other contributors, please add them here. |
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
u = TCPService.new().run() | |
puts "ready to serve!" |
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
class ChannelInboundWorkHandler < ChannelInboundHandlerAdapter | |
def newInboundBuffer(ctx) | |
return Unpooled.messageBuffer(512) | |
end | |
def freeInboundBuffer(ctx, channelbuffer) | |
# netty handles this | |
end |
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
class TCPServiceChannelInitializer < ChannelInitializer | |
def initChannel(sch) | |
sch.pipeline().addLast(DelimiterBasedFrameDecoder.new(8192,Delimiters.lineDelimiter())) | |
sch.pipeline().addLast(StringDecoder.new(Charset.defaultCharset())) | |
sch.pipeline().addLast(ChannelInboundWorkHandler.new()) | |
puts "Channel initialized" | |
end | |
def self.exceptionCaught(ctx,throwable) |
NewerOlder